mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Issue #1084 - Add null check for URL Bar in the writePlaceholder() method
This commit is contained in:
parent
37f0839a64
commit
e164082a5a
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue