arboleya / electrify

Package your Meteor apps with Electron, and butter
MIT License
247 stars 52 forks source link

Defining methods causes the app to crash #63

Closed taliyahpottruff closed 8 years ago

taliyahpottruff commented 8 years ago

I'm currently defining a single method in index.js inside of the .electrify/ folder.

I am defining it inside of app.on('ready', ...): electrify.methods({ 'quit': function(){ electrify.stop({ app.quit(); }); } }); });

Removing it causes the app to launch fine.

Screenshot of the error being thrown: image

taliyahpottruff commented 8 years ago

Woops I was just being stupid electrify.stop({ app.quit(); }); should be electrify.stop(function() { app.quit(); });