pinokiod 3.9.17 → 3.9.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -178,12 +178,12 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
178
178
|
method: "kernel.api.stop",
|
|
179
179
|
params: {
|
|
180
180
|
<% if (script_id) { %>
|
|
181
|
-
id: "
|
|
181
|
+
id: "<%-JSON.stringify(script_id).slice(1, -1)%>",
|
|
182
182
|
<% } %>
|
|
183
183
|
//uri: "<%-uri%>",
|
|
184
184
|
//uri: location.pathname.slice(1).replace("api/", ""),
|
|
185
185
|
<% if (script_path) { %>
|
|
186
|
-
uri: "
|
|
186
|
+
uri: "<%-JSON.stringify(script_path).slice(1, -1)%>",
|
|
187
187
|
<% } else { %>
|
|
188
188
|
uri: "~" + location.pathname,
|
|
189
189
|
<% } %>
|
|
@@ -194,7 +194,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
194
194
|
save() {
|
|
195
195
|
return new Promise((resolve, reject) => {
|
|
196
196
|
<% if (script_path) { %>
|
|
197
|
-
let cwd = "
|
|
197
|
+
let cwd = "<%-JSON.stringify(script_path).slice(1, -1)%>"
|
|
198
198
|
<% } else { %>
|
|
199
199
|
let cwd = "~" + location.pathname
|
|
200
200
|
<% } %>
|
|
@@ -227,11 +227,11 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
227
227
|
this.socket.run({
|
|
228
228
|
//uri: location.pathname.slice(1).replace("api/", ""),
|
|
229
229
|
<% if (script_id) { %>
|
|
230
|
-
id: "
|
|
230
|
+
id: "<%-JSON.stringify(script_id).slice(1, -1)%>",
|
|
231
231
|
<% } %>
|
|
232
232
|
<% if (script_path) { %>
|
|
233
|
-
uri: "
|
|
234
|
-
cwd: "
|
|
233
|
+
uri: "<%-JSON.stringify(script_path).slice(1, -1)%>",
|
|
234
|
+
cwd: "<%-JSON.stringify(cwd).slice(1, -1)%>",
|
|
235
235
|
<% } else { %>
|
|
236
236
|
uri: "~" + location.pathname,
|
|
237
237
|
<% } %>
|