Bläddra i källkod

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

DEV-UNITY-6\Utilisateur 6 år sedan
förälder
incheckning
db414bdb38
1 ändrade filer med 5 tillägg och 1 borttagningar
  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>