Skip to content

Avoid error if mainWindow is no longer set when "activate" occurs.#90

Open
alanning wants to merge 1 commit intoelectron-webapps:masterfrom
alanning:patch-1
Open

Avoid error if mainWindow is no longer set when "activate" occurs.#90
alanning wants to merge 1 commit intoelectron-webapps:masterfrom
alanning:patch-1

Conversation

@alanning
Copy link

Got this error when testing my electron app on OSX:

Uncaught Exception:
TypeError: Cannot read property 'isVisible' of undefined
    at promptIfAppropriate [as _repeat] (/Users/alanning/src/share911/app/.meteor-electron/darwin-x64/builds/Share911-darwin-x64/Share911.app/Contents/Resources/app.asar/loginSafeguards.js:75:36)
    at wrapper [as _onTimeout] (timers.js:275:19)
    at Timer.listOnTimeout (timers.js:92:15)

Not sure why activate would be called when mainWindow is not set though...

Got this error when testing my electron app on OSX:

```
Uncaught Exception:
TypeError: Cannot read property 'isVisible' of undefined
    at promptIfAppropriate [as _repeat] (/Users/alanning/src/share911/app/.meteor-electron/darwin-x64/builds/Share911-darwin-x64/Share911.app/Contents/Resources/app.asar/loginSafeguards.js:75:36)
    at wrapper [as _onTimeout] (timers.js:275:19)
    at Timer.listOnTimeout (timers.js:92:15)
```

Not sure why activate would be called when mainWindow is not set though...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant