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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user