Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
🐛 Issue #1725: Provide default for applicationServerKey
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed May 26, 2017
1 parent 2da999b commit d63bbe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/browser/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var PushNotification = function(options) {

// subscription options
var subOptions = {userVisibleOnly: true};
if (this.options.browser.applicationServerKey) {
if (this.options.browser && this.options.browser.applicationServerKey) {
subOptions.applicationServerKey = urlBase64ToUint8Array(this.options.browser.applicationServerKey);
}

Expand Down

0 comments on commit d63bbe9

Please sign in to comment.