Spaces:
Sleeping
Sleeping
IZERE HIRWA Roger
commited on
Commit
·
9d7601a
1
Parent(s):
818ef98
- chatbot/app.js +1 -1
- chatbot/auth.js +1 -1
- chatbot/landing.js +1 -1
- chatbot/login.js +1 -1
- chatbot/register.js +1 -1
chatbot/app.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
return window.AIMHSA.Config.getApiBaseUrl();
|
| 6 |
}
|
| 7 |
// Fallback to auto-detection
|
| 8 |
-
return `
|
| 9 |
};
|
| 10 |
|
| 11 |
const API_BASE_URL = getAPIBaseUrl();
|
|
|
|
| 5 |
return window.AIMHSA.Config.getApiBaseUrl();
|
| 6 |
}
|
| 7 |
// Fallback to auto-detection
|
| 8 |
+
return `https://${window.location.hostname}`;
|
| 9 |
};
|
| 10 |
|
| 11 |
const API_BASE_URL = getAPIBaseUrl();
|
chatbot/auth.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
}
|
| 9 |
|
| 10 |
// Fallback to auto-detection
|
| 11 |
-
return `
|
| 12 |
};
|
| 13 |
|
| 14 |
const API_BASE_URL = getAPIBaseUrl();
|
|
|
|
| 8 |
}
|
| 9 |
|
| 10 |
// Fallback to auto-detection
|
| 11 |
+
return `https://${window.location.hostname}`;
|
| 12 |
};
|
| 13 |
|
| 14 |
const API_BASE_URL = getAPIBaseUrl();
|
chatbot/landing.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
'use strict';
|
| 4 |
|
| 5 |
// Get API URL from environment or use current host
|
| 6 |
-
const API_BASE_URL = `
|
| 7 |
|
| 8 |
// Smooth scrolling for navigation links
|
| 9 |
function initSmoothScrolling() {
|
|
|
|
| 3 |
'use strict';
|
| 4 |
|
| 5 |
// Get API URL from environment or use current host
|
| 6 |
+
const API_BASE_URL = `https://${window.location.hostname}`;
|
| 7 |
|
| 8 |
// Smooth scrolling for navigation links
|
| 9 |
function initSmoothScrolling() {
|
chatbot/login.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
(() => {
|
| 2 |
-
const API_BASE_URL = `
|
| 3 |
|
| 4 |
// Elements
|
| 5 |
const loginForm = document.getElementById('loginForm');
|
|
|
|
| 1 |
(() => {
|
| 2 |
+
const API_BASE_URL = `https://${window.location.hostname}`;
|
| 3 |
|
| 4 |
// Elements
|
| 5 |
const loginForm = document.getElementById('loginForm');
|
chatbot/register.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
(() => {
|
| 2 |
-
const API_BASE_URL = `
|
| 3 |
|
| 4 |
// Elements
|
| 5 |
const registerForm = document.getElementById('registerForm');
|
|
|
|
| 1 |
(() => {
|
| 2 |
+
const API_BASE_URL = `https://${window.location.hostname}`;
|
| 3 |
|
| 4 |
// Elements
|
| 5 |
const registerForm = document.getElementById('registerForm');
|