Browse Source

Fix "go back in history" button in doc

Han Lin Yap 13 years ago
parent
commit
c4be7d788b
1 changed files with 7 additions and 1 deletions
  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