mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
Merge branch 'main' of https://github.com/LemmyNet/lemmy-ui
This commit is contained in:
commit
a4300d9624
1 changed files with 2 additions and 2 deletions
|
@ -395,7 +395,7 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
} else if (msg.reconnect) {
|
} else if (msg.reconnect) {
|
||||||
toast(i18n.t("websocket_reconnected"), "success");
|
console.log(i18n.t("websocket_reconnected"));
|
||||||
WebSocketService.Instance.send(
|
WebSocketService.Instance.send(
|
||||||
wsClient.userJoin({
|
wsClient.userJoin({
|
||||||
auth: authField(),
|
auth: authField(),
|
||||||
|
@ -542,7 +542,7 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
|
||||||
websocketEvents() {
|
websocketEvents() {
|
||||||
let msg = i18n.t("websocket_disconnected");
|
let msg = i18n.t("websocket_disconnected");
|
||||||
WebSocketService.Instance.closeEventListener(() => {
|
WebSocketService.Instance.closeEventListener(() => {
|
||||||
toast(msg, "danger");
|
console.error(msg);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue