My chrome extension reacts on clicks / double clicks inside a webpage. I'm catching all the events with
window.addEventListener('dblclick', event => {
    // code
});
It doesn't fire on events inside an iframe. Is it possible to add listener to any iframe, so I could process all the clicks inside webpage?
As I understand, I can't get any iframe using getElementById. I've tried to get all the iframes by tag and add event listeners with no success:
document.getElementsByTagName('iframe').forEach(frame => {
    frame.contentWindow.document.body.addEventListener('dblclick', event => {
        kango.console.log('dbl click')
    })
})