2
0
Эх сурвалжийг харах

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

Co-authored-by: dwelle <[email protected]>
Aakansha Doshi 5 жил өмнө
parent
commit
01e546c230

+ 2 - 0
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
     }