Workers P3: Pult-Daten des Prüfstands nur auf Wunsch (pult: true), damit die bisherige Skript-API unverändert bleibt

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-10-18 10:23:48 +00:00
1 parent 2ed2201b22
commit e3c7a22ae2
2 files changed
+6 -5

No files matched your search

+2 -2
View File
@@ -21,7 +21,8 @@ import { createScriptedFetch } from './scripted-fetch.js'
import { holder } from './harness-bridge.js'
const params = new URLSearchParams(window.location.search)
const scripted = createScriptedApi({ now: () => performance.now(), base: Date.now(), halted: params.get('halted') === '1' })
const pageMode = params.get('page') === '1'
const scripted = createScriptedApi({ now: () => performance.now(), base: Date.now(), halted: params.get('halted') === '1', pult: pageMode })
const stage = createRef()
const fault = params.get('fault')
const control = { fault: fault && fault !== 'none' ? fault : null, calls: [], jwts: [] }
@@ -39,7 +40,6 @@ const api = fault === null
window.__wk = { stage, api: scripted, control }
holder.api = api
const pageMode = params.get('page') === '1'
const tab = params.get('tab')
const entries = [pageMode && tab ? `/hustler?tab=${encodeURIComponent(tab)}` : '/hustler']