diff --git a/js/prediction.js b/js/prediction.js index 78dff09..031b1e5 100644 --- a/js/prediction.js +++ b/js/prediction.js @@ -1,4 +1,4 @@ -const API_BASE_URL = 'http://localhost/mon-petit-pari/api'; +const API_BASE_URL = window.location.origin + '/api'; let currentUser = null; let currentMatch = null;