awdeawe
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
// assets/js/api.js
|
||||
const API = "api.php";
|
||||
const BASE = (window.APP_BASE_URL || '').replace(/\/$/, '');
|
||||
const API =
|
||||
(window.APP_API_BASE && window.APP_API_BASE.replace(/\/$/, '')) ||
|
||||
(BASE ? `${BASE}/api.php` : 'api.php');
|
||||
|
||||
/** ---- intern: Hilfen ---- */
|
||||
function withTs(url) {
|
||||
@@ -106,4 +109,3 @@ export function toast(msg, ok = true, opts = {}) {
|
||||
(ok ? console.log : console.error)(msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user