refactoring
This commit is contained in:
15
web/js/config.js
Normal file
15
web/js/config.js
Normal file
@ -0,0 +1,15 @@
|
||||
// Auto-detect API base URL from current domain
|
||||
const API_BASE_URL = window.location.protocol + '//' + window.location.host;
|
||||
|
||||
//const API_BASE_URL = 'http://localhost:5000'; //used for development
|
||||
|
||||
// Application state
|
||||
const AppState = {
|
||||
map: null,
|
||||
markers: [],
|
||||
allListings: [],
|
||||
selectedListingId: null,
|
||||
currentSessionId: null,
|
||||
scrapeStartTime: null,
|
||||
isScrapingActive: false
|
||||
};
|
||||
Reference in New Issue
Block a user