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:
parent
5f0581e194
commit
15323e3ae2
@ -108,6 +108,7 @@ export default {
|
|||||||
if (!this.lens.webview) {
|
if (!this.lens.webview) {
|
||||||
console.log("create webview")
|
console.log("create webview")
|
||||||
const webview = document.createElement('webview');
|
const webview = document.createElement('webview');
|
||||||
|
webview.setAttribute("nodeintegration", "true");
|
||||||
webview.addEventListener('did-finish-load', this.lensLoaded);
|
webview.addEventListener('did-finish-load', this.lensLoaded);
|
||||||
webview.src = this.cluster.url;
|
webview.src = this.cluster.url;
|
||||||
this.lens.webview = webview;
|
this.lens.webview = webview;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user