mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-27 15:30:34 +03:00
fix: fix broken CLI again
This commit is contained in:
parent
81896d32b8
commit
4e12b5dbd6
|
@ -177,7 +177,7 @@ export function removeQueryString(serverUrl: string): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseURL(url: string) {
|
function parseURL(url: string) {
|
||||||
if (typeof URL === undefined) {
|
if (typeof URL === 'undefined') {
|
||||||
// node
|
// node
|
||||||
return new (require('url')).URL(url);
|
return new (require('url')).URL(url);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user