fix: fix broken CLI again

This commit is contained in:
Roman Hotsiy 2019-05-13 13:08:26 +03:00
parent 81896d32b8
commit 4e12b5dbd6
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -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 {