diff options
Diffstat (limited to 'packages/main/src/infrastructure')
-rw-r--r-- | packages/main/src/infrastructure/electron/impl/ElectronServiceView.ts | 12 | ||||
-rw-r--r-- | packages/main/src/infrastructure/electron/types.ts | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/packages/main/src/infrastructure/electron/impl/ElectronServiceView.ts b/packages/main/src/infrastructure/electron/impl/ElectronServiceView.ts index 6ff8e21..e5fdf11 100644 --- a/packages/main/src/infrastructure/electron/impl/ElectronServiceView.ts +++ b/packages/main/src/infrastructure/electron/impl/ElectronServiceView.ts | |||
@@ -105,6 +105,18 @@ export default class ElectronServiceView implements ServiceView { | |||
105 | this.browserView.webContents.goForward(); | 105 | this.browserView.webContents.goForward(); |
106 | } | 106 | } |
107 | 107 | ||
108 | reload(ignoreCache: boolean): void { | ||
109 | if (ignoreCache) { | ||
110 | this.browserView.webContents.reloadIgnoringCache(); | ||
111 | } else { | ||
112 | this.browserView.webContents.reload(); | ||
113 | } | ||
114 | } | ||
115 | |||
116 | stop(): void { | ||
117 | this.browserView.webContents.stop(); | ||
118 | } | ||
119 | |||
108 | setBounds(bounds: BrowserViewBounds): void { | 120 | setBounds(bounds: BrowserViewBounds): void { |
109 | this.browserView.setBounds(bounds); | 121 | this.browserView.setBounds(bounds); |
110 | } | 122 | } |
diff --git a/packages/main/src/infrastructure/electron/types.ts b/packages/main/src/infrastructure/electron/types.ts index 9f03214..63974ce 100644 --- a/packages/main/src/infrastructure/electron/types.ts +++ b/packages/main/src/infrastructure/electron/types.ts | |||
@@ -61,6 +61,10 @@ export interface ServiceView { | |||
61 | 61 | ||
62 | goForward(): void; | 62 | goForward(): void; |
63 | 63 | ||
64 | reload(ignoreCache: boolean): void; | ||
65 | |||
66 | stop(): void; | ||
67 | |||
64 | setBounds(bounds: BrowserViewBounds): void; | 68 | setBounds(bounds: BrowserViewBounds): void; |
65 | 69 | ||
66 | dispose(): void; | 70 | dispose(): void; |