const webview = $('#webview'); |
||
| const captureWebview = $('#captureWebview'); | ||
| // preload | ||
| const preloadFile = 'file://' + require('path').resolve('./preload.js'); | ||
| webview.setAttribute('preload', preloadFile); | ||
| // Forwards, backwords, refresh, and loadURL | ||
| const forwards = $('#forwards'); | ||
| forwards.addEventListener('click', () => { | ||
| if (webview.canGoForward()) { | ||
| webview.goForward(); | ||
| } | ||
| }); |
loading