Compare commits
No commits in common. "816f61fd6e7ac648e77db912ba1655e6d7bae647" and "c81a05064d8b63c3d517d978bca9e8441c24bcd3" have entirely different histories.
816f61fd6e
...
c81a05064d
1 changed files with 1 additions and 5 deletions
|
@ -19,11 +19,7 @@ to check if the request was accepted or declined, check response.data.response,
|
|||
*/
|
||||
|
||||
const apiURL = new URL("http://localhost:5000/interstellar_ai/db")
|
||||
if (typeof window !== 'undefined') {
|
||||
apiURL.hostname = window.location.hostname;
|
||||
} else {
|
||||
apiURL.hostname = "localhost"
|
||||
}
|
||||
apiURL.hostname = window.location.hostname;
|
||||
|
||||
export const sendToDatabase = async (data: object): Promise<boolean> => {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue