Skip to content

Commit e4c1916

Browse files
committed
GetPort: Remove IsShown check
1 parent eebd645 commit e4c1916

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

v2/lib.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,6 @@ func (w Window) GetChildProcessID() uint64 {
348348
// GetPort returns the network port of the running window. If the window isn't
349349
// running, an error is returned.
350350
func (w Window) GetPort() (int, error) {
351-
if !w.IsShown() {
352-
return 0, errors.New("error: window is not running")
353-
}
354351
port := int(C.webui_get_port(C.size_t(w)))
355352
if port == 0 {
356353
return 0, errors.New("error: failed to get port")

0 commit comments

Comments
 (0)