hotfix: change path - relative

This commit is contained in:
Azgaar 2022-02-06 03:08:35 +03:00
parent 040244a186
commit 5428a058c8

View file

@ -47,7 +47,7 @@ async function getStylePreset(desiredPreset) {
} }
async function fetchSystemPreset(preset) { async function fetchSystemPreset(preset) {
const style = await fetch(`../../styles/${preset}.json`) const style = await fetch(`./styles/${preset}.json`)
.then(res => res.json()) .then(res => res.json())
.catch(err => { .catch(err => {
ERROR && console.error("Error on loading style preset", preset, err); ERROR && console.error("Error on loading style preset", preset, err);