aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChris Piro <[email protected]>2022-09-15 18:47:12 -0400
committerChris Piro <[email protected]>2022-09-15 18:47:12 -0400
commit7b1730caaf78ac15e0bee22bb165d57275806f1e (patch)
treec8bbcfcbd8e1e920a283a789912351f3d833a9a6
parentcce16290ab7d67438b09db7ecbbd61b5471edb15 (diff)
downloadkeymap-editor-7b1730caaf78ac15e0bee22bb165d57275806f1e.tar.gz
keymap-editor-7b1730caaf78ac15e0bee22bb165d57275806f1e.zip
fix Save Local
-rw-r--r--app/src/App.js3
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'