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();
|
||||||
|
for (const file of cs.js) {
|
||||||
chrome.tabs.executeScript(tabId, {
|
chrome.tabs.executeScript(tabId, {
|
||||||
file: cs.js[0],
|
file,
|
||||||
runAt: cs.run_at,
|
runAt: cs.run_at,
|
||||||
allFrames: cs.all_frames,
|
allFrames: cs.all_frames,
|
||||||
matchAboutBlank: cs.match_about_blank,
|
matchAboutBlank: cs.match_about_blank,
|
||||||
}, ignoreChromeError);
|
}, ignoreChromeError);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const pingCS = (cs, {id, url}) => {
|
const pingCS = (cs, {id, url}) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user