Skip to content

Commit

Permalink
fix(sendnotification): fix HttpsProxyAgent error (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilning-xc authored Jul 29, 2023
1 parent 0186c24 commit bd4ba1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web-push-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ WebPushLib.prototype.sendNotification = function(subscription, payload, options)
}

if (requestDetails.proxy) {
const HttpsProxyAgent = require('https-proxy-agent'); // eslint-disable-line global-require
const { HttpsProxyAgent } = require('https-proxy-agent'); // eslint-disable-line global-require
httpsOptions.agent = new HttpsProxyAgent(requestDetails.proxy);
}

Expand Down

0 comments on commit bd4ba1f

Please sign in to comment.