Refactor ZenKeyboardShortcuts to remove event listener duplication

This commit is contained in:
mr. M 2024-10-15 15:38:30 +02:00
parent cdc9fb4980
commit 3dc7738737
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -822,7 +822,7 @@ var gZenKeyboardShortcutsManager = {
this._hasCleared = Services.prefs.getBoolPref('zen.keyboard.shortcuts.disable-mainkeyset-clear', false); this._hasCleared = Services.prefs.getBoolPref('zen.keyboard.shortcuts.disable-mainkeyset-clear', false);
window.addEventListener('DOMContentLoaded', this.init.bind(this), { once: true }); this.init();
}, },
async init() { async init() {