1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

enable nodeintegration for react

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-06-18 09:55:49 +03:00
parent 5f0581e194
commit 15323e3ae2

View File

@ -108,6 +108,7 @@ export default {
if (!this.lens.webview) {
console.log("create webview")
const webview = document.createElement('webview');
webview.setAttribute("nodeintegration", "true");
webview.addEventListener('did-finish-load', this.lensLoaded);
webview.src = this.cluster.url;
this.lens.webview = webview;