From ac5bbafdc35df0aca6b311dad609bd3002b2d6e4 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 26 May 2021 23:17:23 +0200 Subject: [PATCH] Fix config.json relative path The path should be relative to index.html, not the JS file. --- components/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/app.js b/components/app.js index 197c0d4..eadf146 100644 --- a/components/app.js +++ b/components/app.js @@ -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();