Browse Source

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

Co-authored-by: Samuel Attard <[email protected]>
trop[bot] 4 years ago
parent
commit
d2591ed4f8
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(() => {});
 };
 
 /**