(scriptSrc)
| 5 | |
| 6 | const features = (() => { |
| 7 | function getFeatures(scriptSrc) { |
| 8 | try { |
| 9 | const url = new URL(scriptSrc); |
| 10 | return url.searchParams.getAll('feature'); |
| 11 | } catch (e) { |
| 12 | return []; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | return getFeatures(document?.currentScript?.src ?? ''); |
| 17 | })(); |
no test coverage detected
searching dependent graphs…