mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +09:00
I fucked up pt.2
This commit is contained in:
parent
e0fe6706d1
commit
30c7ed8319
1 changed files with 9 additions and 0 deletions
|
|
@ -140,6 +140,15 @@ BrowserAction.prototype = {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Older CustomizableUI versions remember that an extension widget was
|
||||||
|
// seen, but do not auto-add removable widgets again when its saved
|
||||||
|
// placement is missing (for example after an upgrade or profile reset).
|
||||||
|
// Ensure browser actions remain discoverable in the main toolbar while
|
||||||
|
// respecting an existing user-selected placement.
|
||||||
|
if (!CustomizableUI.getPlacementOfWidget(this.id)) {
|
||||||
|
CustomizableUI.addWidgetToArea(this.id, CustomizableUI.AREA_NAVBAR);
|
||||||
|
}
|
||||||
|
|
||||||
this.tabContext.on("tab-select", // eslint-disable-line mozilla/balanced-listeners
|
this.tabContext.on("tab-select", // eslint-disable-line mozilla/balanced-listeners
|
||||||
(evt, tab) => { this.updateWindow(tab.ownerGlobal); });
|
(evt, tab) => { this.updateWindow(tab.ownerGlobal); });
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue