We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a21b971 + a41c0dc commit da0b527Copy full SHA for da0b527
src/web-push-lib.js
@@ -197,7 +197,8 @@ WebPushLib.prototype.generateRequestDetails =
197
if (isGCM) {
198
if (!currentGCMAPIKey) {
199
console.warn('Attempt to send push notification to GCM endpoint, ' +
200
- 'but no GCM key is defined'.bold.red);
+ 'but no GCM key is defined. Please use setGCMApiKey() or add ' +
201
+ '\'gcmAPIKey\' as an option.');
202
} else {
203
requestDetails.headers.Authorization = 'key=' + currentGCMAPIKey;
204
}
0 commit comments