Auto-Aktivierung per URL-Parameter + Start-Datei pro Chapter

index.html liest jetzt ?chapter=<code> aus der URL und aktiviert das
Chapter automatisch, ohne dass der Lizenzcode manuell eingegeben
werden muss. start-helios.html ist ein Beispiel: eine kleine
Redirect-Datei, die man statt index.html verschickt/öffnet und die
direkt zum aktivierten Steuerpult des jeweiligen Chapters führt.
This commit is contained in:
Christian Heubaum
2026-08-31 16:57:36 +02:00
parent f031e94fd8
commit 95df518900
2 changed files with 18 additions and 0 deletions

View File

@@ -5857,6 +5857,13 @@ async function showCoordinatorReport() {
// ============================================================
initChannel();
if (activeChapter) applyChapterUI(activeChapter.config);
if (!activeChapter) {
const urlChapterCode = new URLSearchParams(window.location.search).get('chapter');
if (urlChapterCode) {
document.getElementById('activation-code-input').value = urlChapterCode;
activateChapter();
}
}
renderCurrentView();
updateTimerDisplays();
checkLicenseAndUpdates();