Skip to content

Commit 9fca163

Browse files
committed
Hide parent hash
1 parent a3fab5b commit 9fca163

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

js/app.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,15 @@ safeLocalStorageSetItem("visited", "1");
3131
* Go to url hash from intro section
3232
*/
3333
if (location.href.indexOf("#debugger") != -1) {
34+
3435
scrollTo($('#debugger-io'));
35-
}
36+
history.pushState(null, null, "/");
37+
38+
} else if (location.href.indexOf("#libraries") != -1) {
3639

37-
if (location.href.indexOf("#libraries") != -1) {
3840
scrollTo($('#libraries-io'));
41+
history.pushState(null, null, "/");
42+
3943
}
4044

4145
/*

0 commit comments

Comments
 (0)