mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 02:23:43 +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) {
|
||||
if (typeof URL === undefined) {
|
||||
if (typeof URL === 'undefined') {
|
||||
// node
|
||||
return new (require('url')).URL(url);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user