소스 검색

id instead of json

Panayiotis Lipiridis 5 년 전
부모
커밋
703d1e42e3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/index.tsx

+ 2 - 2
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();