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