summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/index.ts3
-rw-r--r--gui/src/renderer/index.html10
2 files changed, 4 insertions, 9 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index bdfc581242..c93f0f89d7 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -1185,6 +1185,9 @@ class ApplicationMain {
fullscreenable: false,
show: false,
frame: false,
+ webPreferences: {
+ nodeIntegration: true,
+ },
};
switch (process.platform) {
diff --git a/gui/src/renderer/index.html b/gui/src/renderer/index.html
index 7b6dfe58ea..d757d23bdd 100644
--- a/gui/src/renderer/index.html
+++ b/gui/src/renderer/index.html
@@ -3,19 +3,11 @@
<head>
<title>Mullvad VPN</title>
<link rel="stylesheet" href="../../assets/css/style.css" />
+ <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'">
</head>
<body>
<div class="app-container"></div>
<script>var exports = {};</script>
<script src="./index.js"></script>
- <script>
- if (process.env.BROWSER_SYNC_CLIENT_URL) {
- const current = document.currentScript;
- const script = document.createElement('script');
- script.src = process.env.BROWSER_SYNC_CLIENT_URL;
- script.async = true;
- current.parentNode.insertBefore(script, current);
- }
- </script>
</body>
</html>