mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 18:06:22 +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",
|
||||
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 => {
|
||||
|
|
Loading…
Reference in a new issue