mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Fix encoded hashes
This commit is contained in:
parent
f5a7656ded
commit
6d12cd4a93
|
@ -844,7 +844,8 @@ function gup(name: string) {
|
|||
/** Returns the URL fragment. */
|
||||
function hup() {
|
||||
const regex = new RegExp('#(.*)');
|
||||
const results = regex.exec(window.location.hash);
|
||||
const hash = decodeURIComponent(window.location.hash);
|
||||
const results = regex.exec(hash);
|
||||
if (!results)
|
||||
return '';
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user