Skip to content

Commit dc5e991

Browse files
authored
Restore Node.js 6 compatibility
1 parent 3c13ece commit dc5e991

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/browser-proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = class BrowserProxy {
77
constructor (targetHost, targetPort, { proxyPort, responseDelay } = {}) {
88
this.targetHost = targetHost;
99
this.targetPort = targetPort;
10-
this.proxyPort = proxyPort;
10+
this.proxyPort = proxyPort || 0;
1111
this.responseDelay = responseDelay || 0;
1212

1313
this.server = http.createServer((...args) => this._onBrowserRequest(...args));

0 commit comments

Comments
 (0)