mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
Centralize window.fetch to rl.fetchJSON()
This commit is contained in:
parent
f300ec94ee
commit
ab3ce67376
4 changed files with 40 additions and 66 deletions
|
|
@ -711,8 +711,7 @@ export function changeTheme(value, themeTrigger = ()=>{}) {
|
|||
__themeAjax = new AbortController();
|
||||
init.signal = __themeAjax.signal;
|
||||
}
|
||||
fetch(url, init)
|
||||
.then(response => response.json())
|
||||
rl.fetchJSON(url, init)
|
||||
.then(data => {
|
||||
if (data && isArray(data) && 2 === data.length) {
|
||||
if (themeLink && !themeStyle) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue