From 01e546c230c0bd7425b1db44a4b310fefd5290b8 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Tue, 7 Jul 2020 22:07:53 +0530 Subject: [PATCH] use width,height from current appstate when initializing scene (#1882) Co-authored-by: dwelle --- src/data/localStorage.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/data/localStorage.ts b/src/data/localStorage.ts index f3ed0628..58a85d6f 100644 --- a/src/data/localStorage.ts +++ b/src/data/localStorage.ts @@ -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 }