mongodb-js / electron-squirrel-startup

Default Squirrel.Windows event handler for your Electron apps.
Apache License 2.0
217 stars 41 forks source link

SyntaxError: 'return' outside of function #15

Closed matthiaslau closed 7 years ago

matthiaslau commented 7 years ago

The node parser doesn´t allow 'return' outside of a function (see https://github.com/nodejs/node-v0.x-archive/issues/6254) and throws SyntaxError: 'return' outside of function.

When I get this right it is necessary to have a return at the beginning of the main.js. Is there a solution for this?

matthiaslau commented 7 years ago

Using app.quit()' instead of return is also working, perhaps it is helpful to add this to the README :-D

durran commented 7 years ago

Added to README courtesy of @nimerix . Thanks for the report.