# Conflicts:
#	autojs/src/main/java/com/stardust/autojs/rhino/NativeJavaObjectWithPrototype.java
This commit is contained in:
hyb1996
2018-10-11 16:14:26 +08:00
5 changed files with 197 additions and 2 deletions

View File

@@ -99,7 +99,9 @@ public class DevPluginResponseHandler implements Handler {
if (!name.endsWith(".js")) {
name = name + ".js";
}
PFiles.write(new File(Pref.getScriptDirPath(), name), script);
File file = new File(Pref.getScriptDirPath(), name);
PFiles.ensureDir(file.getPath());
PFiles.write(file, script);
GlobalAppContext.toast(R.string.text_script_save_successfully);
}
}