It's magic! No need to unescape.
This commit is contained in:
Nicolas Stepien 2013-04-01 20:12:39 +02:00
parent ddee544ec0
commit 2592fc8ed0
3 changed files with 4 additions and 2 deletions

View File

@ -3046,7 +3046,7 @@
reader.onload = function(e) {
var data, err;
try {
data = JSON.parse(decodeURIComponent(escape(e.target.result)));
data = JSON.parse(e.target.result);
Options.loadSettings(data);
if (confirm('Import successful. Refresh now?')) {
return window.location.reload();

View File

@ -1,4 +1,6 @@
master
- Mayhem
Fix importing settings containing unicode characters.
2.39.1
- Mayhem

View File

@ -2465,7 +2465,7 @@ Options =
reader = new FileReader()
reader.onload = (e) ->
try
data = JSON.parse decodeURIComponent escape e.target.result
data = JSON.parse e.target.result
Options.loadSettings data
if confirm 'Import successful. Refresh now?'
window.location.reload()