🔧 Linters gotta lint
This commit is contained in:
parent
11ac780caf
commit
63749e281d
1 changed files with 4 additions and 4 deletions
|
@ -130,10 +130,10 @@ if (nodeIntegration === 'true') {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (/(https?)|(ftp):/.test(window.location.protocol)) {
|
if (/(https?)|(ftp):/.test(window.location.protocol)) {
|
||||||
let warning = 'This renderer process has Node.js integration enabled '
|
let warning = 'This renderer process has Node.js integration enabled '
|
||||||
warning += 'and attempted to load remote content. This exposes users of this app to severe '
|
warning += 'and attempted to load remote content. This exposes users of this app to severe '
|
||||||
warning += 'security risks.\n'
|
warning += 'security risks.\n'
|
||||||
warning += 'For more information and help, consult https://electron.atom.io/docs/tutorial/security/'
|
warning += 'For more information and help, consult https://electron.atom.io/docs/tutorial/security/'
|
||||||
|
|
||||||
console.warn('%cElectron Security Warning', 'font-weight: bold;', warning)
|
console.warn('%cElectron Security Warning', 'font-weight: bold;', warning)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue