aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-03-05 16:20:40 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-03-05 16:20:40 +0100
commit6e5531ae16d69087856ce7f174ba465bc759394c (patch)
tree510ab3208f045dbe574b53123c752b9d9349d5a3 /src/config.js
parentMerge branch 'develop' of https://github.com/meetfranz/franz into develop (diff)
downloadferdium-app-6e5531ae16d69087856ce7f174ba465bc759394c.tar.gz
ferdium-app-6e5531ae16d69087856ce7f174ba465bc759394c.tar.zst
ferdium-app-6e5531ae16d69087856ce7f174ba465bc759394c.zip
feat(App): Add security checks for external URLs
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.js b/src/config.js
index a782ad667..479572edb 100644
--- a/src/config.js
+++ b/src/config.js
@@ -62,3 +62,9 @@ export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config');
62 62
63// Replacing app.asar is not beautiful but unforunately necessary 63// Replacing app.asar is not beautiful but unforunately necessary
64export const DICTIONARY_PATH = asarPath(path.join(__dirname, 'dictionaries')); 64export const DICTIONARY_PATH = asarPath(path.join(__dirname, 'dictionaries'));
65
66export const ALLOWED_PROTOCOLS = [
67 'https:',
68 'http:',
69 'ftp:',
70];