|
@@ -198,13 +198,15 @@ async function injectDelayedScripts(contentId, webId, { cache, scripts }) {
|
|
|
let needsInvoker;
|
|
let needsInvoker;
|
|
|
scripts::forEach(script => {
|
|
scripts::forEach(script => {
|
|
|
const { code, runAt } = script;
|
|
const { code, runAt } = script;
|
|
|
|
|
+ const { id } = script.props;
|
|
|
if (!code) {
|
|
if (!code) {
|
|
|
needsInvoker = true;
|
|
needsInvoker = true;
|
|
|
contLists[runAt]::push(script);
|
|
contLists[runAt]::push(script);
|
|
|
} else if (pageInjectable) {
|
|
} else if (pageInjectable) {
|
|
|
pgLists[runAt]::push(script);
|
|
pgLists[runAt]::push(script);
|
|
|
} else {
|
|
} else {
|
|
|
- bridge.failedIds::push(script.props.id);
|
|
|
|
|
|
|
+ bridge.failedIds::push(id);
|
|
|
|
|
+ bridge.ids::push(id);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
if (document::getReadyState() === 'loading') {
|
|
if (document::getReadyState() === 'loading') {
|