diff --git a/src/webview.js b/src/webview.js index 898aa1c..ce652c5 100644 --- a/src/webview.js +++ b/src/webview.js @@ -297,6 +297,23 @@ const domEvents = () => { WEBVIEW.initialized = true; update(); }); + + // Webview not loaded + WEBVIEW.view.webContents.on("did-fail-load", (e, code, description, url, mainframe) => { + if (mainframe) { + const html = ` + +
+Loading: ${url}
+Error: ${description} (${code})
+