Centralize window.fetch to rl.fetchJSON()

This commit is contained in:
djmaze 2020-09-14 12:39:15 +02:00
parent f300ec94ee
commit ab3ce67376
4 changed files with 40 additions and 66 deletions

View file

@ -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) {