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
1 changed files with 2 additions and 2 deletions

View File

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