1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00
This commit is contained in:
sadan 2024-11-15 09:16:54 -05:00
parent 3c6a374543
commit e1939cc64a
No known key found for this signature in database

View file

@ -56,7 +56,9 @@ export function initWs(isManual = false) {
}
(settings.store.notifyOnAutoConnect || isManual) && Toasts.show({
try {
if (settings.store.notifyOnAutoConnect || isManual) {
Toasts.show({
message: "Connected to WebSocket",
id: Toasts.genId(),
type: Toasts.Type.SUCCESS,
@ -64,6 +66,11 @@ export function initWs(isManual = false) {
position: Toasts.Position.TOP
}
});
}
}
catch (e) {
console.error(e);
}
});
ws.addEventListener("error", e => {