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 d244f9f + 0875020 commit e018d7cCopy full SHA for e018d7c
bin/web-push.js
@@ -24,10 +24,10 @@ const vapidPvtKey = argv['vapid-pvtkey'] || null;
24
25
function getKeys() {
26
if (vapidPubKey && vapidPvtKey) {
27
- const publicKey = fs.readFileSync(argv['vapid-pubkey']);
28
- const privateKey = fs.readFileSync(argv['vapid-pvtkey']);
+ const publicKey = fs.readFileSync(vapidPubKey);
+ const privateKey = fs.readFileSync(vapidPvtKey);
29
30
- if (pubKey && pvtKey) {
+ if (publicKey && privateKey) {
31
return {
32
privateKey,
33
publicKey
0 commit comments