Add LensRendererExtension.navigate (#1345)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-11-12 10:30:57 +02:00
1 parent deb4773b44
commit 4222359bd6
3 files changed
+9 -4

No files matched your search

+2 -2
View File
@@ -122,7 +122,7 @@ export class WindowManager extends Singleton {
async navigate(url: string, frameId?: number) {
await this.ensureMainWindow();
this.sendToView({
channel: "menu:navigate",
channel: "renderer:navigate",
frameId: frameId,
data: [url],
})
@@ -131,7 +131,7 @@ export class WindowManager extends Singleton {
reload() {
const frameId = clusterStore.getById(this.activeClusterId)?.frameId;
if (frameId) {
this.sendToView({ channel: "menu:reload", frameId });
this.sendToView({ channel: "renderer:reload", frameId });
} else {
webContents.getFocusedWebContents()?.reload();
}