lib/puppeteer/target.rb in puppeteer-ruby-0.0.22 vs lib/puppeteer/target.rb in puppeteer-ruby-0.0.23
- old
+ new
@@ -66,13 +66,13 @@
end
opener_page = opener&.page
if opener_page.nil? || type != 'page'
return true
end
- # if (!openerPage.listenerCount(Events.Page.Popup))
+ # if (!openerPage.listenerCount(PageEmittedEvents::Popup))
# return true;
popup_page = page
- opener_page.emit_event('Events.Page.Popup', popup_page)
+ opener_page.emit_event(PageEmittedEvents::Popup, popup_page)
true
end
def initialized?