feat(view): load bundled sample from ?sample=1 deep link
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ad8e437c99
commit
71a77608f8
1 file changed
+5
@@ -253,3 +253,8 @@ $<HTMLSelectElement>('pier').addEventListener('change', (ev) => showPier((ev.tar
|
||||
buildPartToggles();
|
||||
buildViewButtons();
|
||||
renderResults(null);
|
||||
|
||||
// Deep link for the bundled sample: open with ?sample=1 to load P1 without clicking.
|
||||
if (new URLSearchParams(window.location.search).get('sample') === '1') {
|
||||
$<HTMLButtonElement>('sample').click();
|
||||
}
|
||||
Reference in new issue
Block a user