Fix config.json relative path

The path should be relative to index.html, not the JS file.
This commit is contained in:
Simon Ser 2021-05-26 23:17:23 +02:00
parent 17cd38f0b9
commit ac5bbafdc3

View File

@ -18,7 +18,7 @@ import commands from "../commands.js";
import { setup as setupKeybindings } from "../keybindings.js"; import { setup as setupKeybindings } from "../keybindings.js";
import * as store from "../store.js"; import * as store from "../store.js";
const configPromise = fetch("../config.json") const configPromise = fetch("./config.json")
.then((resp) => { .then((resp) => {
if (resp.ok) { if (resp.ok) {
return resp.json(); return resp.json();