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:
1 parent
c82d6eb932
commit
bd056a5105
1 file changed
+2
-2
@@ -255,7 +255,7 @@ var settings = {
|
||||
title : "Gui Hacker",
|
||||
gui : true
|
||||
},
|
||||
hash = document.location.hash.substring(1),
|
||||
hash = decodeURIComponent(document.location.hash.substring(1)),
|
||||
userSettings = {};
|
||||
|
||||
if (hash){
|
||||
@@ -296,4 +296,4 @@ var adjustCanvas = function(){
|
||||
guiHacker = new GuiHacker(settings);
|
||||
|
||||
|
||||
window.addEventListener('resize', adjustCanvas);
|
||||
window.addEventListener('resize', adjustCanvas);
|
||||
Reference in new issue
Block a user