mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
apply suggestions
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
e91a7e0285
commit
7e6a937a2c
@ -27,7 +27,6 @@
|
||||
|
||||
<script>
|
||||
import CubeSpinner from "@/_vue/components/CubeSpinner";
|
||||
import { remote, shell } from 'electron';
|
||||
export default {
|
||||
name: "ClusterPage",
|
||||
components: {
|
||||
@ -106,7 +105,7 @@ export default {
|
||||
activateLens: async function() {
|
||||
console.log("activate lens")
|
||||
if (!this.lens.webview) {
|
||||
console.log("creating webview or iframe")
|
||||
console.log("creating an iframe")
|
||||
const webview = document.createElement('iframe');
|
||||
webview.addEventListener('load', this.lensLoaded);
|
||||
webview.src = this.cluster.url;
|
||||
|
||||
@ -3,7 +3,7 @@ import { ClusterInfo } from "../../../../main/cluster"
|
||||
import { MutationTree, ActionTree, GetterTree } from "vuex"
|
||||
import { PromiseIpc } from 'electron-promise-ipc'
|
||||
import { Tracker } from "../../../../common/tracker"
|
||||
import { remote, WebviewTag } from "electron"
|
||||
import { remote } from "electron"
|
||||
import { clusterStore } from "../../../../common/cluster-store"
|
||||
import { Workspace } from "../../../../common/workspace-store"
|
||||
|
||||
@ -13,7 +13,7 @@ const tracker = new Tracker(remote.app);
|
||||
export interface LensWebview {
|
||||
id: string;
|
||||
loaded: boolean;
|
||||
webview?: WebviewTag | HTMLIFrameElement;
|
||||
webview?: HTMLIFrameElement;
|
||||
}
|
||||
|
||||
export interface ClusterState {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user