We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a82073 commit 010dba0Copy full SHA for 010dba0
worker/README.md
@@ -32,9 +32,10 @@ type ErrorLikeObject = {
32
const worker = new Worker("https://unpkg.com/css-to-js-sourcemap-worker/worker.js");
33
34
worker.onmessage = msg => {
35
- if (msg.id === "render_css" && msg.css) {
+ const {id, css} = msg.data;
36
+ if (id === "render_css" && css) {
37
const style = document.createElement("style");
- style.appendChild(document.createTextNode(msg.css));
38
+ style.appendChild(document.createTextNode(css));
39
document.head.appendChild(style);
40
}
41
};
0 commit comments