Fix config.json relative path
The path should be relative to index.html, not the JS file.
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user