Skip to content

Commit bd4ba1f

Browse files
authored
fix(sendnotification): fix HttpsProxyAgent error (#828)
1 parent 0186c24 commit bd4ba1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web-push-lib.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ WebPushLib.prototype.sendNotification = function(subscription, payload, options)
362362
}
363363

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

0 commit comments

Comments
 (0)