neomjs / neo

The application worker driven frontend framework

Home Page:https://neomjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LivePreview: closing a detached window sometimes gets an error

tobiu opened this issue · comments

Screenshot 2024-06-24 at 22 25 48

might be a bigger issue: revertFocus() & focus() could not be aware about different windows or a focus call wants to enter a no longer existing window.

while there was an issue with the focus remote call (passing id instead of window id, i added explicit port checks into worker.Base. if a windowId gets passed and no port it found, no message will get send. accordingly: promiseMessage() will directly trigger reject() if no message was sent.