diff options
author | 2024-01-26 02:06:35 +0000 | |
---|---|---|
committer | 2024-01-26 02:06:35 +0000 | |
commit | 711181751f0a5ee183b74514a621e4aaa6da3dd7 (patch) | |
tree | 202718df2046fb92761abc3379ae48f35774a92c /src/containers | |
parent | 6.7.1-nightly.10 [skip ci] (diff) | |
download | ferdium-app-711181751f0a5ee183b74514a621e4aaa6da3dd7.tar.gz ferdium-app-711181751f0a5ee183b74514a621e4aaa6da3dd7.tar.zst ferdium-app-711181751f0a5ee183b74514a621e4aaa6da3dd7.zip |
feat: self signed certificates bypass (#1545)
* feat: self signed certificates bypass
* fix lint and vscode setting
* Fix some mistakes and comments
* forgot this one [skip ci]
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.tsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.tsx b/src/containers/settings/EditSettingsScreen.tsx index 8190bef3e..528b1410b 100644 --- a/src/containers/settings/EditSettingsScreen.tsx +++ b/src/containers/settings/EditSettingsScreen.tsx | |||
@@ -295,6 +295,10 @@ const messages = defineMessages({ | |||
295 | id: 'settings.app.form.enableTranslator', | 295 | id: 'settings.app.form.enableTranslator', |
296 | defaultMessage: 'Enable Translator', | 296 | defaultMessage: 'Enable Translator', |
297 | }, | 297 | }, |
298 | useSelfSignedCertificates: { | ||
299 | id: 'settings.app.form.useSelfSignedCertificates', | ||
300 | defaultMessage: 'Enable self-signed certificates', | ||
301 | }, | ||
298 | enableGPUAcceleration: { | 302 | enableGPUAcceleration: { |
299 | id: 'settings.app.form.enableGPUAcceleration', | 303 | id: 'settings.app.form.enableGPUAcceleration', |
300 | defaultMessage: 'Enable GPU Acceleration', | 304 | defaultMessage: 'Enable GPU Acceleration', |
@@ -439,6 +443,9 @@ class EditSettingsScreen extends Component< | |||
439 | showDragArea: Boolean(settingsData.showDragArea), | 443 | showDragArea: Boolean(settingsData.showDragArea), |
440 | enableSpellchecking: Boolean(settingsData.enableSpellchecking), | 444 | enableSpellchecking: Boolean(settingsData.enableSpellchecking), |
441 | enableTranslator: Boolean(settingsData.enableTranslator), | 445 | enableTranslator: Boolean(settingsData.enableTranslator), |
446 | useSelfSignedCertificates: Boolean( | ||
447 | settingsData.useSelfSignedCertificates, | ||
448 | ), | ||
442 | spellcheckerLanguage: settingsData.spellcheckerLanguage, | 449 | spellcheckerLanguage: settingsData.spellcheckerLanguage, |
443 | userAgentPref: settingsData.userAgentPref, | 450 | userAgentPref: settingsData.userAgentPref, |
444 | beta: Boolean(settingsData.beta), // we need this info in the main process as well | 451 | beta: Boolean(settingsData.beta), // we need this info in the main process as well |
@@ -906,6 +913,15 @@ class EditSettingsScreen extends Component< | |||
906 | default: DEFAULT_APP_SETTINGS.enableTranslator, | 913 | default: DEFAULT_APP_SETTINGS.enableTranslator, |
907 | type: 'checkbox', | 914 | type: 'checkbox', |
908 | }, | 915 | }, |
916 | useSelfSignedCertificates: { | ||
917 | label: intl.formatMessage(messages.useSelfSignedCertificates), | ||
918 | value: ifUndefined<boolean>( | ||
919 | settings.all.app.useSelfSignedCertificates, | ||
920 | DEFAULT_APP_SETTINGS.useSelfSignedCertificates, | ||
921 | ), | ||
922 | default: DEFAULT_APP_SETTINGS.useSelfSignedCertificates, | ||
923 | type: 'checkbox', | ||
924 | }, | ||
909 | spellcheckerLanguage: { | 925 | spellcheckerLanguage: { |
910 | label: intl.formatMessage(globalMessages.spellcheckerLanguage), | 926 | label: intl.formatMessage(globalMessages.spellcheckerLanguage), |
911 | value: ifUndefined<string>( | 927 | value: ifUndefined<string>( |