refactor: merge duplicate code from sandboxed/non-sandboxed renderer init (#31755)
This commit is contained in:
parent
b40f3d4cfc
commit
dfb3b24de1
5 changed files with 71 additions and 117 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue