Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

id instead of json

Panayiotis Lipiridis703d1e42e314
diff --git a/src/index.tsx b/src/index.tsx
index 4fbd3565af..9eccaf55dc 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -229,8 +229,8 @@ export class App extends React.Component<{}, AppState> {
let data;
const searchParams = new URLSearchParams(window.location.search);
- if (searchParams.get("json") != null) {
- data = await importFromBackend(searchParams.get("json"));
+ if (searchParams.get("id") != null) {
+ data = await importFromBackend(searchParams.get("id"));
window.history.replaceState({}, "Excalidraw", window.location.origin);
} else {
data = restoreFromLocalStorage();