diff options
author | Chris Piro <[email protected]> | 2022-09-15 18:47:12 -0400 |
---|---|---|
committer | Chris Piro <[email protected]> | 2022-09-15 18:47:12 -0400 |
commit | 7b1730caaf78ac15e0bee22bb165d57275806f1e (patch) | |
tree | c8bbcfcbd8e1e920a283a789912351f3d833a9a6 | |
parent | cce16290ab7d67438b09db7ecbbd61b5471edb15 (diff) | |
download | keymap-editor-7b1730caaf78ac15e0bee22bb165d57275806f1e.tar.gz keymap-editor-7b1730caaf78ac15e0bee22bb165d57275806f1e.zip |
fix Save Local
-rw-r--r-- | app/src/App.js | 3 |
1 files changed, 2 insertions, 1 deletions
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' |