Explorar o código

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

DEV-UNITY-6\Utilisateur %!s(int64=6) %!d(string=hai) anos
pai
achega
db414bdb38
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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>