Browse Source

fix: handle security warnings promise when JS is disabled (#26837)

Samuel Attard 4 years ago
parent
commit
3db4e612f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/renderer/security-warnings.ts

+ 1 - 1
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(() => {});
 };
 
 /**