Skip to content

Commit

Permalink
Fixed insertItemBefore not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Aug 20, 2023
1 parent ed462f3 commit dde9123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class QuickSettingsManager {

//Add the toggle to the system menu
let backgroundApps = QuickSettingsMenu._backgroundApps?.quickSettingsItems?.at(-1) ?? null;
QuickSettingsMenu.insertItemBefore(this._quickSettingToggles[i], backgroundApps);
QuickSettingsMenu.menu.insertItemBefore(this._quickSettingToggles[i], backgroundApps);
});
}

Expand All @@ -279,7 +279,7 @@ class QuickGroupManager {
//Create quick settings group and add to the system menu
this._quickSettingsGroup = new PrivacyQuickGroup(useQuickSubtitle);
let backgroundApps = QuickSettingsMenu._backgroundApps?.quickSettingsItems?.at(-1) ?? null;
QuickSettingsMenu.insertItemBefore(this._quickSettingsGroup, backgroundApps);
QuickSettingsMenu.menu.insertItemBefore(this._quickSettingsGroup, backgroundApps);
}

clean() {
Expand Down

0 comments on commit dde9123

Please sign in to comment.