Skip to content

Commit

Permalink
use width,height from current appstate when initializing scene (excal…
Browse files Browse the repository at this point in the history
…idraw#1882)

Co-authored-by: dwelle <luzar.david@gmail.com>
  • Loading branch information
ad1992 and dwelle committed Jul 7, 2020
1 parent ead58bf commit 01e546c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/data/localStorage.ts
Expand Up @@ -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
}
Expand Down

0 comments on commit 01e546c

Please sign in to comment.