Fix hash parsing
On my browser, the app doesn't work if you pass a hash parameter, because `hash` is URL-encoded. This change fixes the problem.
This commit is contained in:
parent
c82d6eb932
commit
bd056a5105
@ -255,7 +255,7 @@ var settings = {
|
|||||||
title : "Gui Hacker",
|
title : "Gui Hacker",
|
||||||
gui : true
|
gui : true
|
||||||
},
|
},
|
||||||
hash = document.location.hash.substring(1),
|
hash = decodeURIComponent(document.location.hash.substring(1)),
|
||||||
userSettings = {};
|
userSettings = {};
|
||||||
|
|
||||||
if (hash){
|
if (hash){
|
||||||
@ -296,4 +296,4 @@ var adjustCanvas = function(){
|
|||||||
guiHacker = new GuiHacker(settings);
|
guiHacker = new GuiHacker(settings);
|
||||||
|
|
||||||
|
|
||||||
window.addEventListener('resize', adjustCanvas);
|
window.addEventListener('resize', adjustCanvas);
|
||||||
|
Loading…
Reference in New Issue
Block a user