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:
CapacitorSet 2017-01-14 11:52:12 +01:00 committed by GitHub
parent c82d6eb932
commit bd056a5105

View File

@ -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);