File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ setTimeout(() => {{
264264 html_unlocked = html_content.replace(' refreshData();', f'''
265265// Inject sample data and simulate unlocked state
266266pinState.configured = true;
267- pinState.value = '1234 '; // Simulated unlocked state
267+ pinState.value = 'PREVIEW '; // Simulated unlocked state for preview only
268268applyServerData({sample_json}, "dev:client001");
269269
270270// Force hide the PIN modal for the unlocked preview
@@ -327,7 +327,8 @@ setTimeout(() => {{
327327 out.write(html_with_pin)
328328 print(f'Extracted client-console-pin-setup HTML : {len(html_with_pin)} bytes')
329329
330- # Write the unlocked version (overwrite the main one)
330+ # Replace the primary version with the unlocked version
331+ # (The original html_content was written above, now replace with unlocked version)
331332 output_file_unlocked = f'{output_dir}/{file_name}.html'
332333 with open(output_file_unlocked, 'w', encoding='utf-8') as out :
333334 out.write(html_unlocked)
You can’t perform that action at this time.
0 commit comments