mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 14:59:59 +02:00
Refactor ZenKeyboardShortcuts to remove event listener duplication
This commit is contained in:
parent
cdc9fb4980
commit
3dc7738737
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue