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

This commit is contained in:
Samuel Attard 2020-12-07 10:58:00 -08:00 committed by GitHub
parent 03b43e4d8c
commit 3db4e612f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,7 +180,7 @@ const warnAboutInsecureCSP = function () {
console.warn('%cElectron Security Warning (Insecure Content-Security-Policy)',
'font-weight: bold;', warning);
});
}).catch(() => {});
};
/**