Skip to content

Commit b1d5f3b

Browse files
committed
optimize
1 parent 90856f9 commit b1d5f3b

File tree

6 files changed

+407
-325
lines changed

6 files changed

+407
-325
lines changed

empty_script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export default {
114114
onDocumentStart: (details, context) => {},
115115
onDocumentIdle: (details, context) => {},
116116
onDocumentEnd: (details, context) => {},
117+
runInAllFrames: false,
117118

118119
// advanced
119120
runtime: {

popup/tabs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,9 +1057,9 @@ async function refreshSpecialTabs() {
10571057
let currentTab = await getCurrentTab();
10581058
let bgCached = await chrome.runtime.sendMessage({
10591059
action: "ufs-runInBackground",
1060-
data: { fnPath: "getCached" },
1060+
data: { fnPath: "getCache", params: ["badges"] },
10611061
});
1062-
let runnedScriptIds = bgCached?.badges?.[currentTab.id];
1062+
let runnedScriptIds = bgCached?.[currentTab.id];
10631063
console.log(bgCached, currentTab.id, runnedScriptIds);
10641064
if (runnedScriptIds?.length) {
10651065
let scripts = allScriptInTabs.filter((_) => runnedScriptIds.includes(_.id));

0 commit comments

Comments
 (0)