mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Fix #95
This commit is contained in:
parent
b20f757c5d
commit
857795e503
6
index.js
6
index.js
|
@ -395,7 +395,7 @@ const TabPrivate = {
|
||||||
},
|
},
|
||||||
|
|
||||||
initWebview: function () {
|
initWebview: function () {
|
||||||
this.webview = document.createElement("webview");
|
const webview = this.webview = document.createElement("webview");
|
||||||
|
|
||||||
const tabWebviewDidFinishLoadHandler = function (e) {
|
const tabWebviewDidFinishLoadHandler = function (e) {
|
||||||
this.emit("webview-ready", this);
|
this.emit("webview-ready", this);
|
||||||
|
@ -405,8 +405,8 @@ const TabPrivate = {
|
||||||
|
|
||||||
this.webview.addEventListener("dom-ready", function () {
|
this.webview.addEventListener("dom-ready", function () {
|
||||||
// Remove this once https://github.com/electron/electron/issues/14474 is fixed
|
// Remove this once https://github.com/electron/electron/issues/14474 is fixed
|
||||||
tab.webview.blur();
|
webview.blur();
|
||||||
tab.webview.focus();
|
webview.focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.webview.classList.add(this.tabGroup.options.viewClass);
|
this.webview.classList.add(this.tabGroup.options.viewClass);
|
||||||
|
|
Loading…
Reference in a new issue