File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
function getNodeText ( node ) {
2
2
return Array . from ( node . childNodes )
3
3
. filter (
4
- child => child . nodeType === Node . TEXT_NODE && Boolean ( child . textContent ) ,
4
+ child =>
5
+ child . nodeType === window . Node . TEXT_NODE && Boolean ( child . textContent ) ,
5
6
)
6
7
. map ( c => c . textContent )
7
8
. join ( ' ' )
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function waitForElement(
46
46
onDone ( lastError || new Error ( 'Timed out in waitForElement.' ) , null )
47
47
}
48
48
timer = setTimeout ( onTimeout , timeout )
49
- observer = new MutationObserver ( onMutation )
49
+ observer = new window . MutationObserver ( onMutation )
50
50
observer . observe ( container , mutationObserverOptions )
51
51
if ( callback !== undefined ) {
52
52
onMutation ( )
You can’t perform that action at this time.
0 commit comments