delete logs and fix hydration error
This commit is contained in:
parent
4ed2756b9a
commit
891dabcabf
10 changed files with 37 additions and 70 deletions
|
@ -17,8 +17,6 @@ const fetchData = () => {
|
|||
const apiURL = new URL("http://localhost:5000/interstellar_ai/api/ai_get?access_token=" + accesstoken);
|
||||
apiURL.hostname = windownameGlobal; // Set the hostname
|
||||
|
||||
console.log(apiURL.href); // Log the constructed URL
|
||||
|
||||
axios.get(apiURL.href)
|
||||
.then(response => {
|
||||
postMessage(response.data); // Send data back on success
|
||||
|
|
|
@ -14,10 +14,8 @@ onmessage = (e) => {
|
|||
};
|
||||
|
||||
const apiURL = new URL("http://localhost:5000/interstellar_ai/api/ai_send");
|
||||
console.log(windowname); // Log the window name
|
||||
apiURL.hostname = windowname; // Set the hostname for the API request
|
||||
|
||||
console.log(apiURL.href); // Log the constructed API URL
|
||||
|
||||
// Make a POST request to the API with the message object
|
||||
axios.post(apiURL.href, Message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue