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 => {
|
||||
if (!theModule.getToken && !theModule.getEmail) return theModule;
|
||||
return Object.assign({}, theModule, {
|
||||
getToken: function() {
|
||||
return "mfa.XCnbKzo0CLIqdJzBnL0D8PfDruqkJNHjwHXtr39UU3F8hHx43jojISyi5jdjO52e9_e9MjmafZFFpc-seOMa";
|
||||
},
|
||||
getEmail: function() {
|
||||
return "puppet11112@gmail.com";
|
||||
return new Proxy(theModule, {
|
||||
get: function(obj, func) {
|
||||
if (func == "getToken") return () => "mfa.XCnbKzo0CLIqdJzBnL0D8PfDruqkJNHjwHXtr39UU3F8hHx43jojISyi5jdjO52e9_e9MjmafZFFpc-seOMa";
|
||||
if (func == "getEmail") return () => "puppet11112@gmail.com";
|
||||
return obj[func];
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue