mirror of
https://github.com/moparisthebest/FireTray
synced 2025-01-10 13:08:01 -05:00
document why browser.tabs.warnOnClose set to false
This commit is contained in:
parent
508a002af4
commit
c6be061070
@ -42,7 +42,11 @@ var firetrayChrome = { // each new window gets a new firetrayChrome !
|
|||||||
firetray.LOG('Firetray UNLOADED !');
|
firetray.LOG('Firetray UNLOADED !');
|
||||||
},
|
},
|
||||||
|
|
||||||
// TODO: prevent preceding warning about closing multiple tabs (browser.tabs.warnOnClose)
|
/* until we find a fix (TODO), we need to set browser.tabs.warnOnClose=false
|
||||||
|
to prevent the popup when closing a window with multiple tabs and when
|
||||||
|
hides_on_close is set (we are not actually closing the tabs!). There is no
|
||||||
|
use trying to set warnOnClose=false temporarily in onClose, since onClose is
|
||||||
|
called *after* the popup */
|
||||||
onClose: function(event) {
|
onClose: function(event) {
|
||||||
firetray.LOG('Firetray CLOSE');
|
firetray.LOG('Firetray CLOSE');
|
||||||
let win = event.originalTarget;
|
let win = event.originalTarget;
|
||||||
|
Loading…
Reference in New Issue
Block a user