From 7b1730caaf78ac15e0bee22bb165d57275806f1e Mon Sep 17 00:00:00 2001 From: Chris Piro Date: Thu, 15 Sep 2022 18:47:12 -0400 Subject: fix Save Local --- app/src/App.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/App.js b/app/src/App.js index fd6cbe0..15ccda8 100644 --- a/app/src/App.js +++ b/app/src/App.js @@ -2,6 +2,7 @@ import '@fortawesome/fontawesome-free/css/all.css' import keyBy from 'lodash/keyBy' import { useMemo, useState } from 'react' +import * as config from './config' import './App.css'; import { DefinitionsContext } from './providers' import { loadKeycodes } from './keycodes' @@ -23,7 +24,7 @@ function App() { const [saving, setSaving] = useState(false) function handleCompile() { - fetch('/keymap', { + fetch(`${config.apiBaseUrl}/keymap`, { method: 'POST', headers: { 'Content-Type': 'application/json' -- cgit v1.2.3