fix
This commit is contained in:
1 parent
0685fb20b0
commit
ec1c5d71a5
1 file changed
+22
-21
+22
-21
@@ -147,33 +147,34 @@ game.import("extension", function (lib, game, ui, get, ai, _status) {
|
|||||||
function (err) {}
|
function (err) {}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//更新extension.js
|
|
||||||
window.resolveLocalFileSystemURL(
|
|
||||||
lib.assetURL + "extension/" + extName,
|
|
||||||
function (root) {
|
|
||||||
root.getFile(
|
|
||||||
"extension.js",
|
|
||||||
{ create: true },
|
|
||||||
function (fileEntry) {
|
|
||||||
var dataObj = new Blob([text_download], { type: "text/plain" });
|
|
||||||
//写入文件
|
|
||||||
writeFile(fileEntry, dataObj);
|
|
||||||
},
|
|
||||||
function (err) {
|
|
||||||
alert("创建失败!");
|
|
||||||
}
|
|
||||||
);
|
|
||||||
},
|
|
||||||
function (err) {}
|
|
||||||
);
|
|
||||||
|
|
||||||
alert("更新完成");
|
|
||||||
|
|
||||||
},
|
},
|
||||||
() => {}
|
() => {}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//更新extension.js
|
||||||
|
window.resolveLocalFileSystemURL(
|
||||||
|
lib.assetURL + "extension/" + extName,
|
||||||
|
function (root) {
|
||||||
|
root.getFile(
|
||||||
|
"extension.js",
|
||||||
|
{ create: true },
|
||||||
|
function (fileEntry) {
|
||||||
|
var dataObj = new Blob([text_download], { type: "text/plain" });
|
||||||
|
//写入文件
|
||||||
|
writeFile(fileEntry, dataObj);
|
||||||
|
},
|
||||||
|
function (err) {
|
||||||
|
alert("创建失败!");
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
function (err) {}
|
||||||
|
);
|
||||||
|
|
||||||
|
alert("更新完成");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user