Create a new script tag in the head
(&self, props: ScriptProps)
| 49 | |
| 50 | /// Create a new script tag in the head |
| 51 | fn create_script(&self, props: ScriptProps) { |
| 52 | let myself = self.clone(); |
| 53 | queue_effect(move || { |
| 54 | myself.eval(create_element_in_head( |
| 55 | "script", |
| 56 | &props.attributes(), |
| 57 | props.script_contents().ok(), |
| 58 | )); |
| 59 | }); |
| 60 | } |
| 61 | |
| 62 | /// Create a new style tag in the head |
| 63 | fn create_style(&self, props: StyleProps) { |
nothing calls this directly
no test coverage detected