Fixed global url for API

This commit is contained in:
frikky
2020-05-12 16:58:07 +02:00
parent 0751c9527d
commit f8fac39308
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -38,10 +38,10 @@ import AlertTemplate from "react-alert-template-basic";
import { positions, Provider } from "react-alert";
// Testing - localhost
const globalUrl = "http://192.168.3.6:5001"
//const globalUrl = "http://192.168.3.6:5001"
// Production - backend proxy forwarding in nginx
//const globalUrl = window.location.origin
const globalUrl = window.location.origin
const surfaceColor = "#27292D"
const inputColor = "#383B40"
+1
View File
@@ -531,6 +531,7 @@ const Apps = (props) => {
.then((response) => {
if (response.status === 200) {
alert.success("Successfully deleted app")
getApps()
} else {
alert.error("Failed deleting app")
}