Explorar el Código

Fix "go back in history" button in doc

Han Lin Yap hace 13 años
padre
commit
c4be7d788b
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      docs/index.html

+ 7 - 1
docs/index.html

@@ -392,7 +392,13 @@
 
 			}
 
-			goTo( window.location.hash.substring(1) );
+			function goToHash() {
+				goTo( window.location.hash.substring(1) );
+			}
+			
+			window.addEventListener( 'hashchange', goToHash, false );
+
+			goToHash();
 
 			// Layout