We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f71c1 commit 0d446deCopy full SHA for 0d446de
src/addons/addons/block-pins/userscript.js
@@ -280,9 +280,9 @@ export default async function({ addon }) {
280
if (!autoLoadExtPins) vm.runtime.on("EXTENSION_ADDED", () => {
281
populateInit = 2;
282
});
283
- vm.runtime.on("EXTENSION_REMOVED", () => {
284
- populateInit = 2;
285
- });
+ vm.runtime.on("EXTENSION_REMOVED", () => queueMicrotask(() => {
+ populateInit = 1;
+ }));
286
addon.self.addEventListener("disabled", () => {
287
localStorage.removeItem("ADDONS_BLOCK-PINS");
288
0 commit comments