Skip to content

Commit 3ac268c

Browse files
committed
fix: reset internal timers only if enabled
1 parent acf7303 commit 3ac268c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/contentScripts/worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ const onMessage = (message, sender) => {
143143
interval.clear();
144144
clearTimeout(timeout);
145145
}
146-
} else if (message.reset) {
147-
interval.clear()
146+
} else if (message.reset && isEnabled) {
147+
interval.clear();
148148
initialize();
149149
}
150150
}

0 commit comments

Comments
 (0)