[Mypal] Add null check for URL Bar in the writePlaceholder() method
This commit is contained in:
parent
e1e1cbb749
commit
d54fa93da9
|
@ -412,6 +412,10 @@ var gURLBarSettings = {
|
|||
},
|
||||
|
||||
writePlaceholder: function() {
|
||||
if (!gURLBar) {
|
||||
return;
|
||||
}
|
||||
|
||||
let attribute = "placeholder";
|
||||
let prefs = this.prefSuggests.map(pref => {
|
||||
return this.prefSuggest + pref;
|
||||
|
@ -3471,6 +3475,7 @@ function BrowserToolboxCustomizeDone(aToolboxChanged) {
|
|||
|
||||
// Update the urlbar
|
||||
if (gURLBar) {
|
||||
gURLBarSettings.writePlaceholder();
|
||||
URLBarSetURI();
|
||||
XULBrowserWindow.asyncUpdateUI();
|
||||
BookmarkingUI.updateStarState();
|
||||
|
|
Loading…
Reference in New Issue
Block a user