()
| 624 | } |
| 625 | |
| 626 | setValueFromUrl() { |
| 627 | const url = new URL(window.location); |
| 628 | if (!url.searchParams.has("format")) return; |
| 629 | const format = url.searchParams.get("format"); |
| 630 | for ( |
| 631 | const radio of this.querySelectorAll( |
| 632 | "input[type=radio][name=format]", |
| 633 | ) |
| 634 | ) { |
| 635 | radio.checked = format == radio.value; |
| 636 | } |
| 637 | } |
| 638 | } |
| 639 | |
| 640 | class ExamplePicker extends HTMLElement { |
no test coverage detected