mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
Bug 1881820 - Handle SidebarUI not being initialized in updateShortcut. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D205440
This commit is contained in:
parent
fa765267d1
commit
3713c5dd3b
@ -311,7 +311,7 @@ var SidebarUI = {
|
||||
},
|
||||
|
||||
updateShortcut({ keyId }) {
|
||||
let menuitem = this._switcherPanel.querySelector(`[key="${keyId}"]`);
|
||||
let menuitem = this._switcherPanel?.querySelector(`[key="${keyId}"]`);
|
||||
if (!menuitem) {
|
||||
// If the menu item doesn't exist yet then the accel text will be set correctly
|
||||
// upon creation so there's nothing to do now.
|
||||
|
Loading…
Reference in New Issue
Block a user