parent
ddee544ec0
commit
2592fc8ed0
@ -3046,7 +3046,7 @@
|
|||||||
reader.onload = function(e) {
|
reader.onload = function(e) {
|
||||||
var data, err;
|
var data, err;
|
||||||
try {
|
try {
|
||||||
data = JSON.parse(decodeURIComponent(escape(e.target.result)));
|
data = JSON.parse(e.target.result);
|
||||||
Options.loadSettings(data);
|
Options.loadSettings(data);
|
||||||
if (confirm('Import successful. Refresh now?')) {
|
if (confirm('Import successful. Refresh now?')) {
|
||||||
return window.location.reload();
|
return window.location.reload();
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
master
|
master
|
||||||
|
- Mayhem
|
||||||
|
Fix importing settings containing unicode characters.
|
||||||
|
|
||||||
2.39.1
|
2.39.1
|
||||||
- Mayhem
|
- Mayhem
|
||||||
|
|||||||
@ -2465,7 +2465,7 @@ Options =
|
|||||||
reader = new FileReader()
|
reader = new FileReader()
|
||||||
reader.onload = (e) ->
|
reader.onload = (e) ->
|
||||||
try
|
try
|
||||||
data = JSON.parse decodeURIComponent escape e.target.result
|
data = JSON.parse e.target.result
|
||||||
Options.loadSettings data
|
Options.loadSettings data
|
||||||
if confirm 'Import successful. Refresh now?'
|
if confirm 'Import successful. Refresh now?'
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user