You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.
I have this method. It should iterate through all open pages and find a specific one by title.
function pauseXteamRadio(callback) {
(async () => {
try {
const browser = await foxr.connect(options)
const pages = await browser.pages()
for (page of pages) {
const title = await page.title()
console.log(title)
}
browser.disconnect()
callback()
console.log('paused playing X-Team Radio')
} catch (error) {
console.error(error)
}
})()
}
The issue is at const title = await page.title() where it throws the error
(node:37464) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 disconnected listeners added to [Browser]. Use emitter.setMaxListeners() to increase limit
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have this method. It should iterate through all open pages and find a specific one by title.
The issue is at
const title = await page.title()
where it throws the errorThe text was updated successfully, but these errors were encountered: