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 9a8eaa7 commit 573f75cCopy full SHA for 573f75c
scripts/web_timer.js
@@ -37,17 +37,20 @@ export default {
37
popupScript: {
38
onEnable: async () => {
39
const { t } = await import("../popup/helpers/lang.js");
40
- const { runScriptInTab } = await import("./helpers/utils.js");
+ const { runScriptInTabWithEventChain } = await import(
41
+ "./helpers/utils.js"
42
+ );
43
chrome.tabs.query({}, async (tabs) => {
44
let count = 0;
45
for (let tab of tabs) {
46
try {
- await runScriptInTab({
47
+ await runScriptInTabWithEventChain({
48
target: {
49
tabId: tab.id,
50
allFrames: true,
51
},
- func: run,
52
+ scriptIds: ["web_timer"],
53
+ eventChain: "contentScript.onDocumentStart_",
54
world: "ISOLATED",
55
});
56
count++;
0 commit comments