Add shutdown check to prevent closing pinned tabs during shutdown

This commit is contained in:
mr. M
2025-01-17 20:30:48 +01:00
parent 74a4efddf1
commit 9fb04e4f7c

View File

@@ -409,6 +409,10 @@
return; return;
} }
if (Services.startup.shuttingDown || window.skipNextCanClose) {
return;
}
await ZenPinnedTabsStorage.removePin(tab.getAttribute('zen-pin-id')); await ZenPinnedTabsStorage.removePin(tab.getAttribute('zen-pin-id'));
if (!isClosing) { if (!isClosing) {