Skip to content

Commit 081ec33

Browse files
committed
Add ws.isStandalone
1 parent 205e0c6 commit 081ec33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/webwindow.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@ class WebWindowHandle {
528528
return channel;
529529
}
530530

531+
/** @summary Standalone mode without server connection */
532+
isStandalone() { this.kind === 'file'; }
533+
531534
/** @summary Returns true if socket connected */
532535
isConnected() { return this.state > 0; }
533536

0 commit comments

Comments
 (0)