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
Description of the problem:
When closing the main window on macOS, the following error is displayed.
A JavaScript error occurred in the browser process
Error: Object has been destroyed
at BrowserWindow.<anonymous> (/Users/.../node_modules/@capacitor/electron/index.js:115:25)
at BrowserWindow.emit (events.js:205:15)
This error does not occur on Windows. The method in question is
On Windows, this.splashWindow.isDestroyed() returns false before close is called. On macOS, isDestroyed() returns true. The result is a popup window visible to the user.
Affected platform
Android
iOS
electron
web
OS of the development machine
Windows
macOS
linux
Capacitor version: 1.2.0
node version: 12.4.0
npm version: 6.9.0
The text was updated successfully, but these errors were encountered:
Resolvesionic-team#2010 on MacOS.
The issue stems from the splash screen being destroyed already, so I'm simply adding a check to ensure that the splash screen reference has a value and that it isn't already destroyed. This seems to solve the problem in a straightforward manner.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Description of the problem:
When closing the main window on macOS, the following error is displayed.
This error does not occur on Windows. The method in question is
On Windows,
this.splashWindow.isDestroyed()
returns false before close is called. On macOS,isDestroyed()
returns true. The result is a popup window visible to the user.Affected platform
OS of the development machine
Capacitor version: 1.2.0
node version: 12.4.0
npm version: 6.9.0
The text was updated successfully, but these errors were encountered: