mirror of
https://github.com/zen-browser/components.git
synced 2025-07-09 00:05:30 +02:00
refactor: Initialize shortcuts only on the browser page
This commit is contained in:
parent
47c4361082
commit
fd893e06f6
2 changed files with 7 additions and 5 deletions
|
@ -136,7 +136,9 @@ var gZenKeyboardShortcuts = {
|
|||
},
|
||||
|
||||
_initShortcuts() {
|
||||
this._initSavedShortcuts();
|
||||
if (window.location.href == "chrome://browser/content/browser.xhtml") {
|
||||
this._initSavedShortcuts();
|
||||
}
|
||||
},
|
||||
|
||||
_createShortcutElement(action) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue