mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 17:36:34 +00:00
Add shutdown check to prevent closing pinned tabs during shutdown
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user