Merge pull request #1234 from nonameShijian/PR-Branch

fix import info.json
This commit is contained in:
Spmario233 2024-04-19 19:39:21 +08:00 committed by GitHub
commit 6f65e1268f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 ' + 'import { lib, game, ui, get, ai, _status } from "../../noname.js";\ngame.import("extension",function(){\n\treturn ' +
str + str +
"\n});", "\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) { for (var i in dash1.content.image) {
extension[i] = dash1.content.image[i]; extension[i] = dash1.content.image[i];