Compare commits

..

No commits in common. "bf2931327694f023f2058df5f1cd5c6acfd9040f" and "a0aad08f0ecd587d324d374aa16a94be03c886fb" have entirely different histories.

View file

@ -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 {