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 11function getNodeText ( node ) {
22 return Array . from ( node . childNodes )
33 . filter (
4- child => child . nodeType === Node . TEXT_NODE && Boolean ( child . textContent ) ,
4+ child =>
5+ child . nodeType === window . Node . TEXT_NODE && Boolean ( child . textContent ) ,
56 )
67 . map ( c => c . textContent )
78 . join ( ' ' )
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function waitForElement(
4646 onDone ( lastError || new Error ( 'Timed out in waitForElement.' ) , null )
4747 }
4848 timer = setTimeout ( onTimeout , timeout )
49- observer = new MutationObserver ( onMutation )
49+ observer = new window . MutationObserver ( onMutation )
5050 observer . observe ( container , mutationObserverOptions )
5151 if ( callback !== undefined ) {
5252 onMutation ( )
You can’t perform that action at this time.
0 commit comments