pinokiod 3.165.0 → 3.167.0
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/kernel/shell.js +10 -2
- package/package.json +1 -1
- package/server/views/app.ejs +4 -7
package/kernel/shell.js
CHANGED
|
@@ -1139,7 +1139,11 @@ class Shell {
|
|
|
1139
1139
|
// console.log("KILL PTY", this.id)
|
|
1140
1140
|
if (this.ptyProcess) {
|
|
1141
1141
|
if (cb) {
|
|
1142
|
-
|
|
1142
|
+
try {
|
|
1143
|
+
kill(this.ptyProcess.pid, "SIGKILL", true)
|
|
1144
|
+
} catch (e) {
|
|
1145
|
+
console.log("Kill Error", e)
|
|
1146
|
+
}
|
|
1143
1147
|
this.ptyProcess.kill()
|
|
1144
1148
|
this.ptyProcess = undefined
|
|
1145
1149
|
// automatically remove the shell from this.kernel.shells
|
|
@@ -1150,7 +1154,11 @@ class Shell {
|
|
|
1150
1154
|
}
|
|
1151
1155
|
cb()
|
|
1152
1156
|
} else {
|
|
1153
|
-
|
|
1157
|
+
try {
|
|
1158
|
+
kill(this.ptyProcess.pid, "SIGKILL", true)
|
|
1159
|
+
} catch (e) {
|
|
1160
|
+
console.log("Kill Error", e)
|
|
1161
|
+
}
|
|
1154
1162
|
this.ptyProcess.kill()
|
|
1155
1163
|
this.ptyProcess = undefined
|
|
1156
1164
|
// automatically remove the shell from this.kernel.shells
|
package/package.json
CHANGED
package/server/views/app.ejs
CHANGED
|
@@ -6290,7 +6290,10 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
6290
6290
|
}
|
|
6291
6291
|
let default_selection = document.querySelector(".dynamic .submenu [data-default]")
|
|
6292
6292
|
if (default_selection) {
|
|
6293
|
-
|
|
6293
|
+
const targetAttr = default_selection.getAttribute('target') || ''
|
|
6294
|
+
if (typeof targetAttr === 'string' && targetAttr.startsWith('@http')) {
|
|
6295
|
+
ignorePersistedSelection = true
|
|
6296
|
+
}
|
|
6294
6297
|
default_selection.click()
|
|
6295
6298
|
}
|
|
6296
6299
|
rendered = true
|
|
@@ -6449,12 +6452,6 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
|
|
|
6449
6452
|
refresh_du()
|
|
6450
6453
|
refresh_du("logs")
|
|
6451
6454
|
} else {
|
|
6452
|
-
if (event.data.type === 'start') {
|
|
6453
|
-
const frameName = matchedFrameName || (typeof event.data.frame === 'string' ? event.data.frame : null)
|
|
6454
|
-
if (typeof frameName === 'string' && frameName.startsWith('@http')) {
|
|
6455
|
-
ignorePersistedSelection = true
|
|
6456
|
-
}
|
|
6457
|
-
}
|
|
6458
6455
|
refresh()
|
|
6459
6456
|
}
|
|
6460
6457
|
}
|