소스 검색

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

Co-authored-by: dwelle <luzar.david@gmail.com>
Aakansha Doshi 5 년 전
부모
커밋
01e546c230
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/data/localStorage.ts

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