Skip to content

Commit d1d97a2

Browse files
committed
Added comment to renderer.html addressing the content security policy warning that Electron prints
1 parent 4a8c3a6 commit d1d97a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/renderer.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
<head>
33
<title>Electron Project</title>
44
<script src="renderer.js"></script>
5+
<!-- Electron will warn that this renderer has no content security policy, but we ignore the warning because
6+
- I could not find a way to execute JavaScript from a local file (as we do) while having a content security policy.
7+
- We don't noeed a content security policy because we don't load external code.
8+
-->
59
</head>
610
<body>
711
<h1>Hello World</h1>

0 commit comments

Comments
 (0)