summaryrefslogtreecommitdiff
path: root/electron/src/lib/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'electron/src/lib/api.js')
-rw-r--r--electron/src/lib/api.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/electron/src/lib/api.js b/electron/src/lib/api.js
deleted file mode 100644
index 63818541..00000000
--- a/electron/src/lib/api.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Authors: see git history
- *
- * Copyright (c) 2010 Authors
- * Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
- *
- */
-
-import axios from 'axios';
-import flaskserverport from './flaskserverport.json'
-
-if (flaskserverport.port === undefined) {
- var theflaskport = window.inkstitchAPI.flaskport()
- console.log("Installed mode")
- console.log(theflaskport)
-} else {
- var theflaskport = flaskserverport.port
- console.log("Dev mode")
- console.log(theflaskport)
-}
-
-export const inkStitch = axios.create({
- baseURL: `http://127.0.0.1:${theflaskport}`
-})