From ae7bbe7f37122d6e3a88151a01a6b434d51f213d Mon Sep 17 00:00:00 2001 From: BenyFilho <168232825+BenyFilho@users.noreply.github.com> Date: Wed, 10 Sep 2025 11:14:20 -0300 Subject: [PATCH] Fix Inject Module Function (#3795) * fix inject module function * Update src/util/Injected/Store.js Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --------- Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --- src/util/Injected/Store.js | 2 ++ 1 file changed, 2 insertions(+) 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) {