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.
1 parent d244f9f commit 0875020Copy full SHA for 0875020
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