refactor: merge duplicate code from sandboxed/non-sandboxed renderer init (#31755)

This commit is contained in:
Milan Burda 2021-11-10 01:59:33 +01:00 committed by GitHub
parent b40f3d4cfc
commit dfb3b24de1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 71 additions and 117 deletions

View file

@ -281,7 +281,7 @@ const getWebPreferences = async function () {
}
};
export function securityWarnings (nodeIntegration = false) {
export function securityWarnings (nodeIntegration: boolean) {
const loadHandler = async function () {
if (shouldLogSecurityWarnings()) {
const webPreferences = await getWebPreferences();