mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
hotfix: change path - relative
This commit is contained in:
parent
040244a186
commit
5428a058c8
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue