Skip to content
This repository has been archived by the owner on Jan 30, 2019. It is now read-only.

Added support for the "sound" parameter provided by the Pushover API #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* Deps.
*/
Expand Down Expand Up @@ -49,6 +48,7 @@ function Pushover(opts, callback) {
this.url = opts.url;
this.url_title = opts.url_title;
this.priority = opts.priority;
this.sound = opts.sound;
this.timestamp = opts.timestamp;
this.timeout = opts.timeout;

Expand Down Expand Up @@ -121,6 +121,7 @@ Pushover.prototype.end = function(callback) {
url: this.url,
url_title: this.url_title,
priority: this.priority,
sound: this.sound,
timestamp: this.timestamp
};

Expand Down Expand Up @@ -185,4 +186,4 @@ function override(a, b) {
dupe[key] = 'undefined' == typeof b[key]? a[key]: b[key];
}
return dupe;
}
}