diff --git a/src/lib/wapi/wapi.js b/src/lib/wapi/wapi.js index 626476946..c2fd52616 100644 --- a/src/lib/wapi/wapi.js +++ b/src/lib/wapi/wapi.js @@ -179,7 +179,10 @@ function injectParasite() { } (async () => { - window[injectConfig.webpack] = window[injectConfig.webpack] || []; + // window[injectConfig.webpack] = window[injectConfig.webpack] || []; + if (typeof window[injectConfig.webpack] === 'undefined') { + window[injectConfig.webpack] = []; + } while (true) { const last = window[injectConfig.webpack].length - 1; if (