remove unneeded listener

This commit is contained in:
simplyahmazing
2017-05-28 04:22:20 -04:00
parent e3490dbfa5
commit 4c09da791c

View File

@@ -182,9 +182,6 @@ class ServerManagerView {
$webView.addEventListener('dom-ready', () => { $webView.addEventListener('dom-ready', () => {
$webView.focus(); $webView.focus();
}); });
$webView.addEventListener('focus', () => {
console.log('webview focus...', $webView.focus)
})
} }
registerIpcs() { registerIpcs() {
@@ -199,7 +196,7 @@ class ServerManagerView {
activeWebview.goBack(); activeWebview.goBack();
} }
}); });
ipcRenderer.on('focus', () => { ipcRenderer.on('focus', () => {
const activeWebview = document.getElementById(`webview-${this.activeTabIndex}`); const activeWebview = document.getElementById(`webview-${this.activeTabIndex}`);
activeWebview.focus() activeWebview.focus()