id instead of json
This commit is contained in:
parent
a210f442f4
commit
703d1e42e3
@ -229,8 +229,8 @@ export class App extends React.Component<{}, AppState> {
|
|||||||
let data;
|
let data;
|
||||||
const searchParams = new URLSearchParams(window.location.search);
|
const searchParams = new URLSearchParams(window.location.search);
|
||||||
|
|
||||||
if (searchParams.get("json") != null) {
|
if (searchParams.get("id") != null) {
|
||||||
data = await importFromBackend(searchParams.get("json"));
|
data = await importFromBackend(searchParams.get("id"));
|
||||||
window.history.replaceState({}, "Excalidraw", window.location.origin);
|
window.history.replaceState({}, "Excalidraw", window.location.origin);
|
||||||
} else {
|
} else {
|
||||||
data = restoreFromLocalStorage();
|
data = restoreFromLocalStorage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user