Skip to content

Commit a7f9312

Browse files
committed
new style event with string styleList
1 parent c1e4d7a commit a7f9312

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ window.addEventListener("load", function() {
6666
if (hasChange)
6767
window.dispatchEvent(new CustomEvent("newCoCreateCssStyles", {
6868
detail: {
69-
isOnload: true,
70-
styleList
69+
isOnload: false,
70+
styleList: styleList.join('')
7171
},
7272
}));
7373

@@ -91,7 +91,7 @@ window.addEventListener("load", function() {
9191
window.dispatchEvent(new CustomEvent("newCoCreateCssStyles", {
9292
detail: {
9393
isOnload: true,
94-
styleList
94+
styleList: styleList.join('')
9595
},
9696
}));
9797

0 commit comments

Comments
 (0)