We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eebd645 commit e4c1916Copy full SHA for e4c1916
v2/lib.go
@@ -348,9 +348,6 @@ func (w Window) GetChildProcessID() uint64 {
348
// GetPort returns the network port of the running window. If the window isn't
349
// running, an error is returned.
350
func (w Window) GetPort() (int, error) {
351
- if !w.IsShown() {
352
- return 0, errors.New("error: window is not running")
353
- }
354
port := int(C.webui_get_port(C.size_t(w)))
355
if port == 0 {
356
return 0, errors.New("error: failed to get port")
0 commit comments