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>
This commit is contained in:
BenyFilho 2025-09-10 11:14:20 -03:00 • committed by GitHub
commit ae7bbe7f37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {