| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent be44b1f commit deb3cf4
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'); | |
@@ -418,7 +417,7 @@ class NodeInstance extends EventEmitter { | |||
| 418 | 417 | return http.get({ | |
| 419 | 418 | port, | |
| 420 | 419 | family: 4, | |
| 421 | - path: parseURL(devtoolsUrl).path, | ||
| 420 | + path: new URL(devtoolsUrl).pathname, | ||
| 422 | 421 | headers: { | |
| 423 | 422 | 'Connection': 'Upgrade', | |
| 424 | 423 | 'Upgrade': 'websocket', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments