Fix decompressFromBase64

This commit is contained in:
ckcz123 committed 2021-09-01 22:52:17 +08:00
1 parent f810fa2382
commit 6b2ff250be
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -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
View File
@@ -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) {