diff --git a/lib/renderer/security-warnings.ts b/lib/renderer/security-warnings.ts index 24e3dbf9a610..0f6b3782ccc8 100644 --- a/lib/renderer/security-warnings.ts +++ b/lib/renderer/security-warnings.ts @@ -180,7 +180,7 @@ const warnAboutInsecureCSP = function () { console.warn('%cElectron Security Warning (Insecure Content-Security-Policy)', 'font-weight: bold;', warning); - }); + }).catch(() => {}); }; /**