Fix decompressFromBase64
This commit is contained in:
1 parent
f810fa2382
commit
6b2ff250be
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -2173,7 +2173,8 @@ control.prototype._syncLoad_http = function (id, password) {
|
||||
var msg = null;
|
||||
try {
|
||||
msg = JSON.parse(LZString.decompressFromBase64(response.msg));
|
||||
} catch (e) {
|
||||
} catch (e) {}
|
||||
if (!msg) {
|
||||
try {
|
||||
msg = JSON.parse(response.msg);
|
||||
} catch (e) {}
|
||||
|
||||
+2
-1
@@ -1030,7 +1030,8 @@ utils.prototype.readFileContent = function (content) {
|
||||
// 检查base64
|
||||
try {
|
||||
obj = JSON.parse(LZString.decompressFromBase64(content));
|
||||
} catch (e) {
|
||||
} catch (e) {}
|
||||
if (!obj) {
|
||||
try {
|
||||
obj = JSON.parse(content);
|
||||
} catch (e) {
|
||||
|
||||
Reference in new issue
Block a user