From 703d1e42e314807b46f6eed0ead2d7ce5ae9ef4e Mon Sep 17 00:00:00 2001 From: Panayiotis Lipiridis Date: Mon, 20 Jan 2020 21:30:07 +0200 Subject: [PATCH] id instead of json --- src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 4fbd3565..9eccaf55 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();