$( frame.contentWindow ).on( 'focus.wp-heartbeat-focus', function() {
                    focused();
                }).on('blur.wp-heartbeat-focus', function() {
                    setFrameFocusEvents();
                    // We don't know why 'blur' was fired. Either the user clicked in the main window or outside the browser.