develephant / ngElectron

The ngElectron service for AngularJS making it easier to interface with Electron.
Other
59 stars 15 forks source link

Error if intended window becomes unfocused (ngBridge) #1

Closed MarkRabey closed 9 years ago

MarkRabey commented 9 years ago

I started using this the other day, and it's great, except that when the window loses focus send() throws an error as it is using .getFocusedWindow() as the target.

My suggestion would be possibly an option to attach the angularBridge Object to a specific browser window, and defaulting to the focused window, if available.