-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
examples/bridge_mod.js errors on Discord LTS #98
Comments
Probably not the best fix, but try replacing these lines with the following code in the meantime: for (const id in modules) {
const mod = modules[id].exports;
for (const prop in mod) {
const candidate = mod[prop];
try {
if (candidate && candidate.register && candidate.wait) {
Dispatcher = candidate;
break;
}
} catch {
continue;
}
}
if (Dispatcher) break;
} Key changes:
|
same issue here |
@norinorin your changes worked for me in Firefox, thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some infos about the client
The
Dispatcher
in examples/bridge_mod.js doesn't seem to be working anymore.I tried the debugging the the code and it seems to receive data from the backend but it doesn't show the RP.
Every time the script receives a message from the wsocket, it logs and error saying that Dispatcher is undefined.
I tried running the part of the script that searches the Dispatcher and I've discovered that there is no element with .wait and .register
In 2181 elements there isn't one with any of the properties.
The text was updated successfully, but these errors were encountered: