Skip to content

Commit 573f75c

Browse files
committed
fix missing UfsGlobal
1 parent 9a8eaa7 commit 573f75c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/web_timer.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,20 @@ export default {
3737
popupScript: {
3838
onEnable: async () => {
3939
const { t } = await import("../popup/helpers/lang.js");
40-
const { runScriptInTab } = await import("./helpers/utils.js");
40+
const { runScriptInTabWithEventChain } = await import(
41+
"./helpers/utils.js"
42+
);
4143
chrome.tabs.query({}, async (tabs) => {
4244
let count = 0;
4345
for (let tab of tabs) {
4446
try {
45-
await runScriptInTab({
47+
await runScriptInTabWithEventChain({
4648
target: {
4749
tabId: tab.id,
4850
allFrames: true,
4951
},
50-
func: run,
52+
scriptIds: ["web_timer"],
53+
eventChain: "contentScript.onDocumentStart_",
5154
world: "ISOLATED",
5255
});
5356
count++;

0 commit comments

Comments
 (0)