fix shared tab bug

This commit is contained in:
DioCrafts
2025-04-01 21:14:09 +02:00
parent 55c37e7ac5
commit f1f5f46728
5 changed files with 890 additions and 4 deletions
+3 -1
View File
@@ -272,7 +272,9 @@ const fileSharing = {
document.querySelectorAll('.nav-item').forEach(item => {
if (item.querySelector('span').getAttribute('data-i18n') === 'nav.shared') {
item.addEventListener('click', () => {
window.location.href = '/shared.html';
if (window.switchToSharedView) {
window.switchToSharedView();
}
});
}
});