Skip to content

Commit 13606eb

Browse files
authored
Fix options from 'Topic' to 'topic' (#784)
1 parent 4177e7f commit 13606eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/web-push-lib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,14 @@ WebPushLib.prototype.generateRequestDetails = function(subscription, payload, op
188188
}
189189
}
190190

191-
if (options.Topic) {
191+
if (options.topic) {
192192
if (!urlBase64.validate(options.topic)) {
193193
throw new Error('Unsupported characters set use the URL or filename-safe Base64 characters set');
194194
}
195195
if (options.topic.length > 32) {
196196
throw new Error('use maximum of 32 characters from the URL or filename-safe Base64 characters set');
197197
}
198-
topic = options.Topic;
198+
topic = options.topic;
199199
}
200200

201201
if (options.proxy) {

0 commit comments

Comments
 (0)