Skip to content

Commit

Permalink
sendNotification should be in callback of register
Browse files Browse the repository at this point in the history
  • Loading branch information
korneel committed Sep 12, 2014
1 parent 9ec202b commit 66e1915
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/simple.js
Expand Up @@ -5,8 +5,9 @@ var myApp = new growler.GrowlApplication('Simple Growl App');
myApp.setNotifications({
'Server Status': {}
});
myApp.register();
myApp.sendNotification('Server Status', {
title: 'Node Growler online',
text: 'Wasn\'t that hard was it?'
});
myApp.register(function () {
myApp.sendNotification('Server Status', {
title: 'Node Growler online',
text: 'Wasn\'t that hard was it?'
});
});

0 comments on commit 66e1915

Please sign in to comment.