mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-25 16:56:23 +00:00
guh
This commit is contained in:
parent
3c6a374543
commit
e1939cc64a
1 changed files with 14 additions and 7 deletions
|
@ -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",
|
message: "Connected to WebSocket",
|
||||||
id: Toasts.genId(),
|
id: Toasts.genId(),
|
||||||
type: Toasts.Type.SUCCESS,
|
type: Toasts.Type.SUCCESS,
|
||||||
|
@ -64,6 +66,11 @@ export function initWs(isManual = false) {
|
||||||
position: Toasts.Position.TOP
|
position: Toasts.Position.TOP
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ws.addEventListener("error", e => {
|
ws.addEventListener("error", e => {
|
||||||
|
|
Loading…
Reference in a new issue