Create a new script tag in the head
(&self, props: ScriptProps)
| 108 | |
| 109 | /// Create a new script tag in the head |
| 110 | fn create_script(&self, props: ScriptProps) { |
| 111 | let myself = self.clone(); |
| 112 | queue_effect(move || { |
| 113 | myself.eval(create_element_in_head( |
| 114 | "script", |
| 115 | &props.attributes(), |
| 116 | props.script_contents().ok(), |
| 117 | )); |
| 118 | }); |
| 119 | } |
| 120 | |
| 121 | /// Create a new style tag in the head |
| 122 | fn create_style(&self, props: StyleProps) { |
nothing calls this directly
no test coverage detected