Fix #122621
This commit is contained in:
parent
254c7dc359
commit
fbb11a9bf7
1 changed files with 3 additions and 1 deletions
|
@ -463,7 +463,9 @@ export class GettingStartedPage extends EditorPane {
|
|||
const nonce = generateUuid();
|
||||
const colorMap = TokenizationRegistry.getColorMap();
|
||||
|
||||
const uriTranformedContent = content.replace(/src="([^"]*)"/g, (_, src) => {
|
||||
const uriTranformedContent = content.replace(/src="([^"]*)"/g, (_, src: string) => {
|
||||
if (src.startsWith('https://')) { return `src="${src}"`; }
|
||||
|
||||
const path = joinPath(base, src);
|
||||
const transformed = asWebviewUri(this.environmentService, this.webviewID, path).toString();
|
||||
return `src="${transformed}"`;
|
||||
|
|
Loading…
Reference in a new issue