소스 검색

//redirect the TS with the hash of the saved playground

DEV-UNITY-6\Utilisateur 6 년 전
부모
커밋
db414bdb38
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      Playground/ts.html

+ 5 - 1
Playground/ts.html

@@ -1,4 +1,8 @@
 <script>
     localStorage.setItem("bjs-playground-scriptLanguage", "TS");
-    window.location = "./";
+
+    var parseURL = window.location.href.split("ts.html");
+    var hash = parseURL[parseURL.length - 1];
+
+    window.location = "./"+hash;
 </script>