Ver Fonte

Don't bother changing the URL there is no `token` parameter.

Afshin T. Darian há 5 anos atrás
pai
commit
ea718f2aa6
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      dev_mode/templates/template.html

+ 4 - 0
dev_mode/templates/template.html

@@ -28,6 +28,10 @@
     var url = location.origin + location.pathname +
       (query !== '?' ? query : '') + location.hash;
 
+    if (url === location.href) {
+      return;
+    }
+
     window.history.replaceState({ }, '', url);
   })();
 </script>