Onionr/static-data/www/mail/loadsettings.js

17 lines
489 B
JavaScript
Raw Normal View History

mailSettings = {}
fetch('/config/get/mail', {
headers: {
"content-type": "application/json",
"token": webpass
}})
.then((resp) => resp.json())
.then(function(settings) {
mailSettings = settings || {}
if (mailSettings.default_forward_secrecy === false){
document.getElementById('forwardSecrecySetting').checked = false
}
2020-02-19 07:57:56 +00:00
if (mailSettings.use_padding === false){
document.getElementById('messagePaddingSetting').checked = false
}
})