浏览代码

fix restoring from localStorage (#715)

David Luzar 5 年之前
父节点
当前提交
82eb97462b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/index.tsx

+ 2 - 0
src/index.tsx

@@ -353,6 +353,8 @@ export class App extends React.Component<any, AppState> {
       );
       if (match) {
         this.loadScene(match[1], match[2]);
+      } else {
+        this.loadScene(null, undefined);
       }
     }
   }