Skip to content

Commit

Permalink
fix(ohos): fix remote server url parse (#4179)
Browse files Browse the repository at this point in the history
  • Loading branch information
zealotchen0 authored Jan 22, 2025
1 parent 1aa96f1 commit 5d1df73
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export class DevRemoteServerData {
return;
}
let url = Url.URL.parseURL(remoteServerUrl)
this.scheme = url.protocol;
// url.protocol is "https:", remove ':'
this.scheme = url.protocol.replace(/:$/, '');
this.host = url.hostname;
this.path = url.pathname;
let port = url.port;
Expand Down

0 comments on commit 5d1df73

Please sign in to comment.