mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Improve Settings handling
This commit is contained in:
parent
e7b1ce7509
commit
34b25eedea
39 changed files with 160 additions and 150 deletions
6
dev/bootstrap.js
vendored
6
dev/bootstrap.js
vendored
|
|
@ -1,4 +1,4 @@
|
|||
import { doc, elementById, dropdownVisibility } from 'Common/Globals';
|
||||
import { doc, elementById, dropdownVisibility, Settings } from 'Common/Globals';
|
||||
import { StorageResultType } from 'Common/Enums';
|
||||
import { i18n } from 'Common/Translator';
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ export default (App) => {
|
|||
},
|
||||
reload: () => {
|
||||
rl.route.root();
|
||||
setTimeout(() => (rl.settings.app('inIframe') ? parent : window).location.reload(), 100);
|
||||
setTimeout(() => (Settings.app('inIframe') ? parent : window).location.reload(), 100);
|
||||
},
|
||||
off: () => hasher.changed.active = false,
|
||||
on: () => hasher.changed.active = true,
|
||||
|
|
@ -91,7 +91,7 @@ export default (App) => {
|
|||
if (postData) {
|
||||
init.method = 'POST';
|
||||
init.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
|
||||
postData.XToken = rl.settings.app('token');
|
||||
postData.XToken = Settings.app('token');
|
||||
// init.body = JSON.stringify(postData);
|
||||
const formData = new FormData(),
|
||||
buildFormData = (formData, data, parentKey) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue