Store load settings in URL fragment, not query string

This commit is contained in:
Max Brunsfeld
2015-03-04 16:03:00 -08:00
parent 8796c284be
commit 9bb4968e6f
3 changed files with 3 additions and 4 deletions

View File

@@ -14,8 +14,7 @@ window.onload = function() {
cacheDir = path.join(cacheDir, 'root');
}
// Skip "?loadSettings=".
var rawLoadSettings = decodeURIComponent(location.search.substr(14));
var rawLoadSettings = decodeURIComponent(location.hash.substr(1));
var loadSettings;
try {
loadSettings = JSON.parse(rawLoadSettings);