asd
This commit is contained in:
@@ -23,7 +23,13 @@
|
||||
const pidInput = rootSc.querySelector("#sc-pid");
|
||||
const serialInput = rootSc.querySelector("#sc-serial");
|
||||
|
||||
const apiUrl = cfg.apiBase.replace(/\/+$/, "") + "/quickcheck";
|
||||
// API-Basis:
|
||||
// - cfg.apiBase kommt aus fakecheck.core.js (z.B. https://api.usbcheck.it)
|
||||
// - wir hängen /v1/quickcheck dran
|
||||
// - Fallback: /api/v1/quickcheck auf demselben Host
|
||||
const apiBaseRaw = (cfg && cfg.apiBase) ? cfg.apiBase : "";
|
||||
const apiBase = apiBaseRaw.replace(/\/+$/, "");
|
||||
const apiUrl = apiBase ? (apiBase + "/v1/quickcheck") : "/api/v1/quickcheck";
|
||||
|
||||
// -------------------------------------------------------
|
||||
// Fehleranzeige
|
||||
|
||||
Reference in New Issue
Block a user