opencode-statboard 2.10.7 → 2.10.8
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 +1 -1
- package/tui-dashboard.js +7 -2
package/package.json
CHANGED
package/tui-dashboard.js
CHANGED
|
@@ -398,8 +398,13 @@ class TUIServer {
|
|
|
398
398
|
|
|
399
399
|
openWeb() {
|
|
400
400
|
const url = 'http://' + this.host + ':' + this.port;
|
|
401
|
-
|
|
402
|
-
|
|
401
|
+
if (process.platform === 'win32') {
|
|
402
|
+
spawn('cmd', ['/c', 'start', '""', url], { detached: true, stdio: 'ignore' }).unref();
|
|
403
|
+
} else if (process.platform === 'darwin') {
|
|
404
|
+
spawn('open', [url], { detached: true, stdio: 'ignore' }).unref();
|
|
405
|
+
} else {
|
|
406
|
+
spawn('xdg-open', [url], { detached: true, stdio: 'ignore' }).unref();
|
|
407
|
+
}
|
|
403
408
|
}
|
|
404
409
|
|
|
405
410
|
getContentWidth() {
|