mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-20 20:07:03 -04:00
Updates
This commit is contained in:
parent
75fac79ad1
commit
deceb2ba97
13 changed files with 186 additions and 58 deletions
|
@ -83,14 +83,16 @@ export default definePlugin({
|
|||
|
||||
const connectionSuccessful = await new Promise(res => setTimeout(() => res(ws.readyState === WebSocket.OPEN), 1000)); // check if open after 1s
|
||||
if (!connectionSuccessful) {
|
||||
showNotice("Failed to connect to arRPC, is it running?", "Retry", () => { // show notice about failure to connect, with retry/ignore
|
||||
showNotice("Failed to connect to arRPC, is it running?", "Retry", () => {
|
||||
// show notice about failure to connect, with retry/ignore
|
||||
popNotice();
|
||||
this.start();
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Toasts.show({ // show toast on success
|
||||
Toasts.show({
|
||||
// show toast on success
|
||||
message: "Connected to arRPC",
|
||||
type: Toasts.Type.SUCCESS,
|
||||
id: Toasts.genId(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue