pushover-notifications
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -59,2 +59,6 @@ var https = require('https'), | ||
if (opts.onerror) { | ||
this.onerror = opts.onerror; | ||
} | ||
self.updateSounds(); | ||
@@ -74,3 +78,7 @@ if (opts.update_sounds) { | ||
if (d.errors) { | ||
throw new Error(d.errors[0]); | ||
if (this.onerror) { | ||
this.onerror.call(null, d) | ||
} else { | ||
throw new Error(d.errors[0]); | ||
} | ||
} | ||
@@ -77,0 +85,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "Pushover API for node.js", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"homepage": "http://github.com/qbit/node-pushover", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -29,2 +29,3 @@ ![Pushover](https://pushover.net/assets/pushover-header-0f47af8e08d8bef658a999a9e6584fcc.png) | ||
sound: 'magic', // optional | ||
device: 'devicename', // optional | ||
priority: 1 // optional | ||
@@ -31,0 +32,0 @@ }; |
6703
8
196
73
7