Skip to content

Commit 9cec223

Browse files
committed
fix : discord login
1 parent 9bb851d commit 9cec223

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/Api/Discord/Login.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ class MobileLoginState extends State<MobileLogin> {
2222
try {
2323
final result = await _controller.evaluateJavascript(source: '''
2424
(function() {
25-
const wreq = (webpackChunkdiscord_app.push([[''], {}, e => { m = []; for (let c in e.c) m.push(e.c[c]) }]), m)
26-
.find(m => m?.exports?.default?.getToken !== void 0).exports.default.getToken();
27-
return wreq;
28-
})();
29-
''');
25+
const m = []; webpackChunkdiscord_app.push([[""], {}, e => {for (let c in e.c)m.push(e.c[c])}]);
26+
return m.find(n => n?.exports?.default?.getToken !== void 0)?.exports?.default?.getToken();
27+
})()''');
3028

3129
if (result != null && result != 'null') {
3230
_login(result.trim().replaceAll('"', ''));

0 commit comments

Comments
 (0)