Skip to content

Commit ddd0b6f

Browse files
committed
Move releasenotes baseurl into html
1 parent 8d6645c commit ddd0b6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/parts/update/electron-browser/releaseNotesEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function renderBody(body: string): string {
2626
return `<!DOCTYPE html>
2727
<html>
2828
<head>
29+
<base href="https://code.visualstudio.com/raw/">
2930
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
3031
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src https: data:; media-src https:; script-src 'none'; style-src file: https: 'unsafe-inline'; child-src 'none'; frame-src 'none';">
3132
<link rel="stylesheet" type="text/css" href="${require.toUrl('./media/markdown.css')}">
@@ -94,7 +95,6 @@ export class ReleaseNotesEditor extends WebviewEditor {
9495
.then(renderBody)
9596
.then<void>(body => {
9697
this.webview = new WebView(this.content, this.partService.getContainer(Parts.EDITOR_PART));
97-
this.webview.baseUrl = `https://code.visualstudio.com/raw/`;
9898

9999
if (this.input && this.input instanceof ReleaseNotesInput) {
100100
const state = this.loadViewState(this.input.version);

0 commit comments

Comments
 (0)