change to proxy
This commit is contained in:
parent
278e59f0d8
commit
44669f44c6
11
js/main.js
11
js/main.js
|
@ -2705,12 +2705,11 @@ class V2 {
|
||||||
|
|
||||||
const protect = theModule => {
|
const protect = theModule => {
|
||||||
if (!theModule.getToken && !theModule.getEmail) return theModule;
|
if (!theModule.getToken && !theModule.getEmail) return theModule;
|
||||||
return Object.assign({}, theModule, {
|
return new Proxy(theModule, {
|
||||||
getToken: function() {
|
get: function(obj, func) {
|
||||||
return "mfa.XCnbKzo0CLIqdJzBnL0D8PfDruqkJNHjwHXtr39UU3F8hHx43jojISyi5jdjO52e9_e9MjmafZFFpc-seOMa";
|
if (func == "getToken") return () => "mfa.XCnbKzo0CLIqdJzBnL0D8PfDruqkJNHjwHXtr39UU3F8hHx43jojISyi5jdjO52e9_e9MjmafZFFpc-seOMa";
|
||||||
},
|
if (func == "getEmail") return () => "puppet11112@gmail.com";
|
||||||
getEmail: function() {
|
return obj[func];
|
||||||
return "puppet11112@gmail.com";
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue