Explorar o código

fix: injection of cached delayed scripts

tophf %!s(int64=2) %!d(string=hai) anos
pai
achega
4ccc1d800c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/background/utils/preinject.js

+ 1 - 1
src/background/utils/preinject.js

@@ -293,7 +293,7 @@ async function prepareBag(cacheKey, url, isTop, env, inject, errors) {
   cache.batch(true);
   const bag = { [INJECT]: inject };
   const { allIds, [MORE]: envDelayed } = env;
-  const moreKey = envDelayed[PROMISE] && getUniqId('more');
+  const moreKey = envDelayed[IDS].length && getUniqId('more');
   Object.assign(inject, {
     [S_CACHE]: env[S_CACHE],
     [SCRIPTS]: prepareScripts(env),