mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Webatrice: show loading screen until protobuf initializes (#4559)
* show loading screen until protobuf initializes * cleanup Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
parent
bb16ae09ef
commit
6928a2bd98
15 changed files with 178 additions and 4 deletions
|
|
@ -5,6 +5,10 @@ import { sanitizeHtml } from 'websocket/utils';
|
|||
import NormalizeService from '../utils/NormalizeService';
|
||||
|
||||
export class SessionPersistence {
|
||||
static initialized() {
|
||||
ServerDispatch.initialized();
|
||||
}
|
||||
|
||||
static clearStore() {
|
||||
ServerDispatch.clearStore();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import ProtoFiles from '../ProtoFiles';
|
|||
import { WebClient } from '../WebClient';
|
||||
|
||||
import { RoomEvents, SessionEvents } from '../events';
|
||||
import { SessionPersistence } from '../persistence';
|
||||
|
||||
export interface ProtobufEvents {
|
||||
[event: string]: Function;
|
||||
|
|
@ -135,6 +136,8 @@ export class ProtobufService {
|
|||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
|
||||
SessionPersistence.initialized();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue