You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.
In OpenFin, listening to close-requested disables the closing of the window. @jleft suggested this approach instead:
I'd propose that the behaviour by default would be that the window will close, regardless of whether the close listener is added or not (in OpenFin the close would be forced). However, add the option for the user to prevent the default behaviour (i.e. prevent the close using event.preventDefault()) within their event handler. Our API can then detect if default has been prevented (i.e. event.defaultPrevented) and use this to determine whether this window should be closed or not (in Openfin, force close if event.defaultPrevented === false, otherwise don't close). What do you think?
The text was updated successfully, but these errors were encountered:
In OpenFin, listening to
close-requested
disables the closing of the window. @jleft suggested this approach instead:The text was updated successfully, but these errors were encountered: