Skip to content

Commit d4cf59d

Browse files
committed
Remove JavaScript/CSS restriction from HTML Content View
1 parent 65e1dec commit d4cf59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/CustomViews.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class HtmlContentView extends CustomView {
179179

180180
getContent(): string {
181181
// Return an HTML page which disables JavaScript in content by default
182-
return `<html><head><meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src *; style-src 'self'; script-src 'none';"></head><body>${this.htmlContent}</body></html>`;
182+
return `<html><head></head><body>${this.htmlContent}</body></html>`;
183183
}
184184
}
185185

0 commit comments

Comments
 (0)