IZERE HIRWA Roger commited on
Commit
9d7601a
·
1 Parent(s): 818ef98
chatbot/app.js CHANGED
@@ -5,7 +5,7 @@
5
  return window.AIMHSA.Config.getApiBaseUrl();
6
  }
7
  // Fallback to auto-detection
8
- return `http://${window.location.hostname}:${window.location.port || '7860'}`;
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 `http://${window.location.hostname}:${window.location.port || '7860'}`;
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 = `http://${window.location.hostname}:${window.location.port || '7860'}`;
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 = `http://${window.location.hostname}:${window.location.port || '7860'}`;
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 = `http://${window.location.hostname}:${window.location.port || '7860'}`;
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');