fix(player): fix vroot context getter
This commit is contained in:
parent
fdbf1c2b86
commit
cebb80c64b
1 changed files with 1 additions and 1 deletions
|
|
@ -315,7 +315,7 @@ export class OnloadStyleSheet extends PromiseQueue<CSSStyleSheet> {
|
|||
return new OnloadStyleSheet(new Promise((resolve, reject) =>
|
||||
vRoot.onNode(node => {
|
||||
let context: typeof globalThis | null
|
||||
if (node instanceof Document) {
|
||||
if (node instanceof Document || node.nodeName === '#document') {
|
||||
context = node.defaultView
|
||||
} else {
|
||||
context = node.ownerDocument.defaultView
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue