Skip to content

Commit cdbf956

Browse files
jsjoeiocode-asher
andauthored
Update lib/vscode/src/vs/workbench/api/common/shared/webview.ts
Co-authored-by: Asher <[email protected]>
1 parent fe414b5 commit cdbf956

File tree

1 file changed

+1
-1
lines changed
  • lib/vscode/src/vs/workbench/api/common/shared

1 file changed

+1
-1
lines changed

lib/vscode/src/vs/workbench/api/common/shared/webview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function asWebviewUri(
6060
const uri = new URL(resource.authority);
6161
return URI.from({
6262
scheme: Schemas.https,
63-
authority: `${resource.scheme}+${uri.hostname}+${uri.port}.${webviewRootResourceAuthority}`,
63+
authority: `${resource.scheme}+${uri.hostname}.${webviewRootResourceAuthority}` + uri.port ? (":" + uri.port) : "",
6464
path: resource.path,
6565
fragment: resource.fragment,
6666
query: resource.query,

0 commit comments

Comments
 (0)