mirror of
https://github.com/scratchfoundation/scratchx.git
synced 2025-02-17 19:30:20 -05:00
Fix setting page on load
This commit is contained in:
parent
eabdf0911b
commit
d6bfd1bf51
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,6 @@ function initPage() {
|
|||
/*
|
||||
On load, show the page identified by the URL fragment. Default to #home.
|
||||
*/
|
||||
showPage(initialPage, true);
|
||||
if (window.location.hash) {
|
||||
if (window.location.hash.charAt(1) == "!") {
|
||||
decompress(window.location.hash.substr(2), function(data) {
|
||||
|
@ -434,6 +433,7 @@ function initPage() {
|
|||
initialPage = window.location.hash.substr(1);
|
||||
}
|
||||
}
|
||||
showPage(initialPage, true);
|
||||
loadFromURLParameter(window.location.search, true);
|
||||
}
|
||||
$(initPage);
|
||||
|
|
Loading…
Reference in a new issue