Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

load scene from localStorage in collaboration if user is first… (#1036)

Edwin Linf1160a1534a7
diff --git a/src/components/App.tsx b/src/components/App.tsx
index 4c0bf4cdc7..e1010d334a 100644
--- a/src/components/App.tsx
+++ b/src/components/App.tsx
@@ -351,13 +351,14 @@ export class App extends React.Component<any, AppState> {
return;
}
+ const scene = await loadScene(null);
+ this.syncActionResult(scene);
+
const roomMatch = getCollaborationLinkData(window.location.href);
if (roomMatch) {
this.initializeSocketClient();
return;
}
- const scene = await loadScene(null);
- this.syncActionResult(scene);
window.addEventListener("beforeunload", this.beforeUnload);
}
diff --git a/src/i18n.ts b/src/i18n.ts
index 65f94ac6b2..55efd91f29 100644
--- a/src/i18n.ts
+++ b/src/i18n.ts
@@ -10,7 +10,7 @@ export const languages = [
label: "Bahasa Indonesia",
data: require("./locales/id-ID.json"),
},
- { lng: "hu-HU", label: "Magyar", data: require("./locales/hu-HU.json") },
+ { lng: "hu-HU", label: "Magyar", data: require("./locales/hu-HU.json") },
{ lng: "no-No", label: "Norsk", data: require("./locales/no-NO.json") },
{ lng: "pl-PL", label: "Polski", data: require("./locales/pl-PL.json") },
{ lng: "pt-PT", label: "Português", data: require("./locales/pt-PT.json") },