Просмотр исходного кода

Hashes are removed from the URI before finishing transitions

theflametrooper 8 лет назад
Родитель
Сommit
e03c3decf0
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      frontend/main.js

+ 1 - 0
frontend/main.js

@@ -36,6 +36,7 @@ document.onkeydown = event => {
 };
 
 router.beforeEach(transition => {
+	window.location.hash = '';
 	if (window.stationInterval) {
 		clearInterval(window.stationInterval);
 		window.stationInterval = 0;