| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0ef18fe commit 9730482
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,8 +5,7 @@ const fs = require('fs'); | |||
| 5 | 5 | const http = require('http'); | |
| 6 | 6 | const fixtures = require('../common/fixtures'); | |
| 7 | 7 | const { spawn } = require('child_process'); | |
| 8 | - const { parse: parseURL } = require('url'); | ||
| 9 | - const { pathToFileURL } = require('url'); | ||
| 8 | + const { URL, pathToFileURL } = require('url'); | ||
| 10 | 9 | const { EventEmitter } = require('events'); | |
| 11 | 10 | ||
| 12 | 11 | const _MAINSCRIPT = fixtures.path('loop.js'); | |
@@ -417,7 +416,8 @@ class NodeInstance extends EventEmitter { | |||
| 417 | 416 | const port = await this.portPromise; | |
| 418 | 417 | return http.get({ | |
| 419 | 418 | port, | |
| 420 | - path: parseURL(devtoolsUrl).path, | ||
| 419 | + family: 4, | ||
| 420 | + path: new URL(devtoolsUrl).pathname, | ||
| 421 | 421 | headers: { | |
| 422 | 422 | 'Connection': 'Upgrade', | |
| 423 | 423 | 'Upgrade': 'websocket', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments