(example)
| 667 | } |
| 668 | |
| 669 | async loadExample(example) { |
| 670 | if (example == "") { |
| 671 | return this.dispatchEvent(new LoadCodeEvent("")); |
| 672 | } |
| 673 | const res = await fetch(new URL(example, window.location.href)); |
| 674 | if (res.ok) { |
| 675 | this.dispatchEvent(new LoadCodeEvent(await res.text())); |
| 676 | } |
| 677 | } |
| 678 | } |
| 679 | |
| 680 | class WasmLoader extends HTMLElement { |
no outgoing calls
no test coverage detected