mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-24 23:41:34 +00:00
Refactor DevTools startup to streamline event management and remove unnecessary assignments
This commit is contained in:
@@ -757,11 +757,9 @@ var gZenCKSSettings = {
|
||||
this.__hasInitialized = true;
|
||||
this._currentActionID = null;
|
||||
this._initializeEvents();
|
||||
gZenKeyboardShortcutsManager._devToolsEvents = ZenMultiWindowFeature.currentBrowser.gZenKeyboardShortcutsManager._devToolsEvents;
|
||||
window.addEventListener('unload', () => {
|
||||
this.__hasInitialized = false;
|
||||
document.getElementById(ZEN_CKS_WRAPPER_ID).innerHTML = '';
|
||||
gZenKeyboardShortcutsManager._devToolsEvents = {};
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user