refactor: Initialize shortcuts only on the browser page

This commit is contained in:
Mauro Balades 2024-08-08 20:09:53 +02:00
parent 47c4361082
commit fd893e06f6
2 changed files with 7 additions and 5 deletions

View file

@ -136,7 +136,9 @@ var gZenKeyboardShortcuts = {
},
_initShortcuts() {
this._initSavedShortcuts();
if (window.location.href == "chrome://browser/content/browser.xhtml") {
this._initSavedShortcuts();
}
},
_createShortcutElement(action) {