diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2019-07-15 14:43:13 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2019-07-15 14:43:13 +0800 |
commit | 7039ce27816ac7a0f74381b58dc498e5e3608e74 (patch) | |
tree | db6de9e91b7b767cc197218145f12180fa3cdae7 | |
parent | 1804ba8231ea1e9665acc5c9f24aa28b3a6b0f03 (diff) | |
download | basilisk-7039ce27816ac7a0f74381b58dc498e5e3608e74.tar.gz |
[BASILISK] A prompt should be shown for new foreign add-ons on start up
- Follow up to: 2cbbc5de4596ef3436685fa3316eeed9af700249 and MoonchildProductions/UXP#937
- Should be `RecentWindow.getMostRecentBrowserWindow()` instead of `this.getMostRecentBrowserWindow()`.
-rw-r--r-- | basilisk/components/nsBrowserGlue.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basilisk/components/nsBrowserGlue.js b/basilisk/components/nsBrowserGlue.js index d29009b..ad0b7ed 100644 --- a/basilisk/components/nsBrowserGlue.js +++ b/basilisk/components/nsBrowserGlue.js @@ -1074,7 +1074,7 @@ BrowserGlue.prototype = { // them to the user. let changedIDs = AddonManager.getStartupChanges(AddonManager.STARTUP_CHANGE_INSTALLED); if (changedIDs.length > 0) { - let win = this.getMostRecentBrowserWindow(); + let win = RecentWindow.getMostRecentBrowserWindow(); AddonManager.getAddonsByIDs(changedIDs, function(aAddons) { aAddons.forEach(function(aAddon) { // If the add-on isn't user disabled or can't be enabled then skip it. |