Files
client/app/renderer/mermaid-frame.html
T

16 lines
1011 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Isolated Mermaid renderer, embedded by js/markdown/mermaid.js as <iframe sandbox="allow-scripts">.
The served header policy (main.js) adds frame-ancestors and the sandbox directive; meta cannot carry them.
Inline styles are allowed here only: Mermaid writes <style> elements and style attributes while it
measures and builds the SVG. Nothing may be fetched; scripts are exactly the two local files below. -->
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src app://teamspeach/vendor/mermaid/mermaid.min.js app://teamspeach/js/markdown/mermaid-frame.js; style-src 'unsafe-inline'; img-src data: blob:; connect-src 'none'; base-uri 'none'; form-action 'none'; frame-src 'none'; object-src 'none'">
<title>Mermaid renderer</title>
<script defer src="vendor/mermaid/mermaid.min.js"></script>
<script defer src="js/markdown/mermaid-frame.js"></script>
</head>
<body></body>
</html>