diff --git a/src/util/Injected/Store.js b/src/util/Injected/Store.js index 2f53421..05bfa31 100644 --- a/src/util/Injected/Store.js +++ b/src/util/Injected/Store.js @@ -213,6 +213,8 @@ exports.ExposeStore = () => { window.injectToFunction = (target, callback) => { let module = window.require(target.module); + if (!module) return; + const path = target.function.split('.'); const funcName = path.pop(); for (const key of path) {