fix import info.json

This commit is contained in:
nonameShijian 2024-04-19 19:34:46 +08:00
parent 6fa6fc7bf4
commit 1cebde75f0
1 changed files with 7 additions and 0 deletions

View File

@ -426,6 +426,13 @@ export const extensionMenu = function (connectMenu) {
'import { lib, game, ui, get, ai, _status } from "../../noname.js";\ngame.import("extension",function(){\n\treturn ' +
str +
"\n});",
"info.json": JSON.stringify({
name: page.currentExtension,
author: authorExtLine.querySelector("input").value || "",
diskURL: diskExtLine.querySelector("input").value || "",
forumURL: forumExtLine.querySelector("input").value || "",
version: versionExtLine.querySelector("input").value || ""
}),
};
for (var i in dash1.content.image) {
extension[i] = dash1.content.image[i];