Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Michal Srb 2020-08-13 04:35:31 -07:00 committed by GitHub
parent c9d5ec9277
commit c0dd870c6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 660 additions and 358 deletions

View file

@ -724,6 +724,11 @@ class App extends React.Component<ExcalidrawProps, AppState> {
});
}
document.body.classList.toggle(
"Appearance_dark",
this.state.appearance === "dark",
);
if (this.state.isCollaborating && !this.portal.socket) {
this.initializeSocketClient({ showLoadingState: true });
}