#WebviewWindow.getByLabel returns null even though the window is open

3 messages · Page 1 of 1 (latest)

ashen jacinth
#

Hello,

I've created a window using this code:

clearWindow = new WebviewWindow("clearWindow", {
  url: "/desktop_interface/clear_window",
  transparent: true
});```

The window opens successfully.

However, when I navigate to a different page in the main window, the `clearWindow` variable is cleared and I'm not sure if the window is open anymore. I thought that using `clearWindow = WebviewWindow.getByLabel("clearWindow");` on page load would fix the issue, however `WebviewWindow.getByLabel("clearWindow")` appears to return null, even though the `clearWindow` window is open. Any idea why this is happening?
#

WebviewWindow.getByLabel returns null even though the window is open

final gate