<commit_before>const webViewElement = document.querySelector('.messages-iframe');

webViewElement.addEventListener('new-window', (e) => {
    require('electron').shell.openExternal(e.url);
})

window.addEventListener('focus', () => webViewElement.focus());<commit_msg>Remove webview focus when parent window loses focus<commit_after>const webViewElement = document.querySelector('.messages-iframe');

webViewElement.addEventListener('new-window', (e) => {
    require('electron').shell.openExternal(e.url);
})

window.addEventListener('focus', () => webViewElement.focus());
window.addEventListener('blur', () => webViewElement.blur());
{'fraction_non_alphanumeric': 0.1761006289308176, 'fraction_numerical': 0.0, 'mean_word_length': 7.847222222222222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2787099', 'n_tokens_mistral': 173, 'n_tokens_neox': 167, 'n_words': 24}