Skip to content

Commit

Permalink
Bug fix: Clippings menu disappears when extension is reloaded
Browse files Browse the repository at this point in the history
(issue #455)
  • Loading branch information
aecreations committed May 26, 2024
1 parent eb5434f commit 3073975
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions wx-src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,7 @@ async function init(aPrefs)
refreshSyncedClippings(true);
}
else {
if (! aPrefs._isInitialized) {
buildContextMenu(platform.os, aPrefs);
}
rebuildContextMenu();
}

aeClippingSubst.init(navigator.userAgent, aPrefs.autoIncrPlcHldrStartVal);
Expand Down Expand Up @@ -470,8 +468,6 @@ async function init(aPrefs)
else {
log("Clippings/wx: Initialization complete.");
}

await aePrefs.setPrefs({_isInitialized: true});
}


Expand Down
2 changes: 0 additions & 2 deletions wx-src/scripts/aePrefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
let aePrefs = {
_defaultBkgdState: {
// Background script state persistence
_isInitialized: false,
_clippingMenuItemIDMap: {},
_folderMenuItemIDMap: {},
_autoIncrPlchldrs: [],
Expand Down Expand Up @@ -255,7 +254,6 @@ let aePrefs = {
async setSanFranciscoPrefs(aPrefs)
{
let newPrefs = {
_isInitialized: false,
_clippingMenuItemIDMap: {},
_folderMenuItemIDMap: {},
_autoIncrPlchldrs: [],
Expand Down

0 comments on commit 3073975

Please sign in to comment.