1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 09:56:24 +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,14 +56,21 @@ export function initWs(isManual = false) {
}
(settings.store.notifyOnAutoConnect || isManual) && Toasts.show({
message: "Connected to WebSocket",
id: Toasts.genId(),
type: Toasts.Type.SUCCESS,
options: {
position: Toasts.Position.TOP
try {
if (settings.store.notifyOnAutoConnect || isManual) {
Toasts.show({
message: "Connected to WebSocket",
id: Toasts.genId(),
type: Toasts.Type.SUCCESS,
options: {
position: Toasts.Position.TOP
}
});
}
});
}
catch (e) {
console.error(e);
}
});
ws.addEventListener("error", e => {