mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Fix API base URL
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
* Base API endpoint for all backend requests
|
||||
* @constant
|
||||
*/
|
||||
export const API_BASE_URL = `${location.host || "https://fromchat.toolbox-io.ru"}/api`;
|
||||
export const API_BASE_URL = `${location.host ? "" : "https://fromchat.toolbox-io.ru"}/api`;
|
||||
|
||||
/**
|
||||
* Full API URL including hostname and port for WebSocket connections
|
||||
|
||||
Reference in New Issue
Block a user