Przeglądaj źródła

Merge branch 'release/v0.2.5'

Jérôme BUISINE 4 lat temu
rodzic
commit
dc6aa2c755
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      static/js/keyEvents.js

+ 6 - 0
static/js/keyEvents.js

@@ -58,3 +58,9 @@ const checkKey = e => {
 
 // implement `key` events
 document.addEventListener('keydown', checkKey)
+
+
+// avoid back button return 30 times... (Need to improve this..)
+for (var i = 0; i < 30; i++){
+   window.history.pushState({isBackPage: false, }, document.title, location.href)
+}