use width,height from current appstate when initializing scene (#1882)

Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Aakansha Doshi 2020-07-07 22:07:53 +05:30 committed by GitHub
parent ead58bf2d9
commit 01e546c230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,8 @@ export const restoreFromLocalStorage = () => {
// If we're retrieving from local storage, we should not be collaborating
appState.isCollaborating = false;
appState.collaborators = new Map();
delete appState.width;
delete appState.height;
} catch {
// Do nothing because appState is already null
}