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 * as store from "../store.js";
|
||||
|
||||
const configPromise = fetch("../config.json")
|
||||
const configPromise = fetch("./config.json")
|
||||
.then((resp) => {
|
||||
if (resp.ok) {
|
||||
return resp.json();
|
||||
|
||||
Reference in New Issue
Block a user