Skip to content

Commit da0b527

Browse files
authored
Merge pull request #263 from web-push-libs/gauntface-gcm-error-fix
GCM Error no longer undefined
2 parents a21b971 + a41c0dc commit da0b527

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'.bold.red);
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)