fix(player): fix vroot context getter (#1190)
Co-authored-by: nick-delirium <nikita@openreplay.com>
This commit is contained in:
parent
4abd69e0e2
commit
ada7e74aed
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