mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
imp: properly inject css in iframe, as expected
This commit is contained in:
+3
-5
@@ -74,11 +74,9 @@ class Playground extends Component {
|
||||
doc.body.appendChild(script);
|
||||
|
||||
// inject css
|
||||
const link = document.createElement("link");
|
||||
link.type = "text/css";
|
||||
link.rel = "stylesheet";
|
||||
link.innerHTML = this.state.css;
|
||||
doc.body.appendChild(link);
|
||||
const style = document.createElement("style");
|
||||
style.innerHTML = this.state.css;
|
||||
doc.head.appendChild(style);
|
||||
};
|
||||
|
||||
this.refs.content.innerHTML = "";
|
||||
|
||||
Reference in New Issue
Block a user