Fix: inject all scripts
This commit is contained in:
parent
f4651da8d8
commit
582e9078af
|
@ -268,12 +268,14 @@ window.addEventListener('storageReady', function _() {
|
||||||
|
|
||||||
const injectCS = (cs, tabId) => {
|
const injectCS = (cs, tabId) => {
|
||||||
ignoreChromeError();
|
ignoreChromeError();
|
||||||
chrome.tabs.executeScript(tabId, {
|
for (const file of cs.js) {
|
||||||
file: cs.js[0],
|
chrome.tabs.executeScript(tabId, {
|
||||||
runAt: cs.run_at,
|
file,
|
||||||
allFrames: cs.all_frames,
|
runAt: cs.run_at,
|
||||||
matchAboutBlank: cs.match_about_blank,
|
allFrames: cs.all_frames,
|
||||||
}, ignoreChromeError);
|
matchAboutBlank: cs.match_about_blank,
|
||||||
|
}, ignoreChromeError);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const pingCS = (cs, {id, url}) => {
|
const pingCS = (cs, {id, url}) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user