(pyElement)
| 45 | }; |
| 46 | |
| 47 | const configParser = (pyElement) => { |
| 48 | const parser = pyElement.getAttribute("config-parser"); |
| 49 | return parser ? new URL(parser, location.href).href : undefined; |
| 50 | }; |
| 51 | |
| 52 | const conflictError = (reason) => new Error(`(${CONFLICTING_CODE}): ${reason}`); |
| 53 |