Skip to content

Commit 59d5b66

Browse files
authored
fix: add adoptedStyleSheets.get() to patched document in worker. (#674)
1 parent 8cd3896 commit 59d5b66

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changeset/chilly-eggs-yawn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@qwik.dev/partytown': patch
3+
---
4+
5+
Add adoptedStyleSheets.get() to patched `document` in worker.

src/lib/web-worker/worker-document.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ export const patchDocument = (
179179
},
180180
},
181181

182+
adoptedStyleSheets: {
183+
get() {
184+
return getter(this, ['adoptedStyleSheets']);
185+
},
186+
},
187+
182188
implementation: {
183189
get() {
184190
return {

0 commit comments

Comments
 (0)