This commit is contained in:
Jackson Kearl 2021-05-10 10:17:34 -07:00
parent 254c7dc359
commit fbb11a9bf7
No known key found for this signature in database
GPG key ID: DA09A59C409FC400

View file

@ -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}"`;