Skip to content

Commit 25274a6

Browse files
committed
修正
1. 修正產生 `FILENAME` 參數的條件
1 parent b5f6ed1 commit 25274a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ class Builder {
12271227
const isHadMVCommand = commandMV.length > 0
12281228

12291229
const code =
1230-
(isHadCode || isHadParam ? `\n const FILENAME = document.currentScript.src.split("/").pop().replace(".js", "")` : "")
1230+
(isHadMZCommand || isHadParam ? `\n const FILENAME = document.currentScript.src.split("/").pop().replace(".js", "")` : "")
12311231
+ (isHadParam ? "\n const PARAMETERS = PluginManager.parameters(FILENAME)" : "")
12321232
+ (isHadCode ? `\n\n${commandsCode}` : "")
12331233
+ (isHadMVCommand ? `\n\n if (Utils.RPGMAKER_NAME === "MV") {\n${commandMV}\n }` : "")

0 commit comments

Comments
 (0)