Skip to content

Commit a41c0dc

Browse files
author
Matt Gaunt
authored
Update web-push-lib.js
1 parent 96d45c2 commit a41c0dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/web-push-lib.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ WebPushLib.prototype.generateRequestDetails =
197197
if (isGCM) {
198198
if (!currentGCMAPIKey) {
199199
console.warn('Attempt to send push notification to GCM endpoint, ' +
200-
'but no GCM key is defined');
200+
'but no GCM key is defined. Please use setGCMApiKey() or add ' +
201+
'\'gcmAPIKey\' as an option.');
201202
} else {
202203
requestDetails.headers.Authorization = 'key=' + currentGCMAPIKey;
203204
}

0 commit comments

Comments
 (0)