mirror of
https://github.com/scratchfoundation/scratchx.git
synced 2024-12-03 12:56:56 -05:00
parent
43a98d6f4a
commit
8a84040be9
1 changed files with 7 additions and 0 deletions
|
@ -352,6 +352,13 @@ function showPage(path) {
|
||||||
if ($toShow.is(Scratch.FlashApp.$ASobj)) {
|
if ($toShow.is(Scratch.FlashApp.$ASobj)) {
|
||||||
$toShow.css({top: 0});
|
$toShow.css({top: 0});
|
||||||
}
|
}
|
||||||
|
if (document.location.hash.substr(1) != path) {
|
||||||
|
if (path != "home") {
|
||||||
|
document.location.hash = '#' + path;
|
||||||
|
} else {
|
||||||
|
document.location.hash = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue