()
| 328 | } |
| 329 | |
| 330 | getNavigationHistory() { |
| 331 | const entries = this.wcv.webContents.navigationHistory.getAllEntries() |
| 332 | const index = this.wcv.webContents.navigationHistory.getActiveIndex() |
| 333 | |
| 334 | return { entries, index } |
| 335 | } |
| 336 | |
| 337 | async capturePage(rect?: Electron.Rectangle, quality: 'low' | 'medium' | 'high' = 'low') { |
| 338 | if (!this.wcv || !this.wcv.webContents || this.wcv.webContents.isDestroyed()) { |