mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 02:47:31 +09:00
[BASILISK] A prompt should be shown for new foreign add-ons on start up
- Follow up to: 2cbbc5de4596ef3436685fa3316eeed9af700249 and #937 - Should be `RecentWindow.getMostRecentBrowserWindow()` instead of `this.getMostRecentBrowserWindow()`.
This commit is contained in:
parent
f256af1571
commit
936be91587
1 changed files with 1 additions and 1 deletions
|
|
@ -1074,7 +1074,7 @@ BrowserGlue.prototype = {
|
||||||
// them to the user.
|
// them to the user.
|
||||||
let changedIDs = AddonManager.getStartupChanges(AddonManager.STARTUP_CHANGE_INSTALLED);
|
let changedIDs = AddonManager.getStartupChanges(AddonManager.STARTUP_CHANGE_INSTALLED);
|
||||||
if (changedIDs.length > 0) {
|
if (changedIDs.length > 0) {
|
||||||
let win = this.getMostRecentBrowserWindow();
|
let win = RecentWindow.getMostRecentBrowserWindow();
|
||||||
AddonManager.getAddonsByIDs(changedIDs, function(aAddons) {
|
AddonManager.getAddonsByIDs(changedIDs, function(aAddons) {
|
||||||
aAddons.forEach(function(aAddon) {
|
aAddons.forEach(function(aAddon) {
|
||||||
// If the add-on isn't user disabled or can't be enabled then skip it.
|
// If the add-on isn't user disabled or can't be enabled then skip it.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue