This commit is contained in:
Zsolt Viczian
2022-03-12 08:50:21 +01:00
parent 654d12f2a1
commit 635930eccb
15 changed files with 227 additions and 79 deletions

View File

@@ -308,7 +308,7 @@ export class EmbeddedFilesLoader {
const entries = excalidrawData.getFileEntries();
//debug({where:"EmbeddedFileLoader.loadSceneFiles",uid:this.uid,isDark:this.isDark,sceneTheme:excalidrawData.scene.appState.theme});
if (this.isDark === undefined) {
this.isDark = excalidrawData.scene.appState.theme === "dark";
this.isDark = excalidrawData?.scene?.appState?.theme === "dark";
}
let entry;
const files: FileData[] = [];