drop back to older clone which clens non-clonables
This commit is contained in:
parent
1f9c666f1c
commit
4fcade4288
2 changed files with 4 additions and 3 deletions
|
|
@ -500,7 +500,7 @@ function settingsImport(data, ask) {
|
|||
const { uc, ui } = api;
|
||||
if (typeof(data) === 'string') {
|
||||
try {
|
||||
data = api.util.b64dec(data);
|
||||
data = data.charAt(0) === '{' ? JSON.parse(data) : api.util.b64dec(data);
|
||||
} catch (e) {
|
||||
uc.alert('invalid import format');
|
||||
console.log('data',data,{type: typeof data},e);
|
||||
|
|
|
|||
Loading…
Reference in a new issue