Function
ExtensionScript
({isTemplate, name, version})
Source from the content-addressed store, hash-verified
| 17 | const formTypes = ['input', 'select', 'form']; |
| 18 | |
| 19 | const ExtensionScript = ({isTemplate, name, version}) => html` |
| 20 | <script |
| 21 | async |
| 22 | ${isTemplate ? 'custom-template' : 'custom-element'}="${name}" |
| 23 | src="https://cdn.ampproject.org/v0/${name}-${version || '0.1'}.js" |
| 24 | ></script> |
| 25 | `; |
| 26 | |
| 27 | const AmpState = (id, state) => html` |
| 28 | <amp-state id="${id}"> |
Callers
nothing calls this directly
Tested by
no test coverage detected