Skip to content

Commit 0d446de

Browse files
authored
retry updating pins on extension removal
1 parent 59f71c1 commit 0d446de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/addons/addons/block-pins/userscript.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ export default async function({ addon }) {
280280
if (!autoLoadExtPins) vm.runtime.on("EXTENSION_ADDED", () => {
281281
populateInit = 2;
282282
});
283-
vm.runtime.on("EXTENSION_REMOVED", () => {
284-
populateInit = 2;
285-
});
283+
vm.runtime.on("EXTENSION_REMOVED", () => queueMicrotask(() => {
284+
populateInit = 1;
285+
}));
286286
addon.self.addEventListener("disabled", () => {
287287
localStorage.removeItem("ADDONS_BLOCK-PINS");
288288
});

0 commit comments

Comments
 (0)