mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
🔧 Linters gotta lint
This commit is contained in:
@@ -130,10 +130,10 @@ if (nodeIntegration === 'true') {
|
||||
}
|
||||
|
||||
if (/(https?)|(ftp):/.test(window.location.protocol)) {
|
||||
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 += 'security risks.\n'
|
||||
warning += 'For more information and help, consult https://electron.atom.io/docs/tutorial/security/'
|
||||
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 += 'security risks.\n'
|
||||
warning += 'For more information and help, consult https://electron.atom.io/docs/tutorial/security/'
|
||||
|
||||
console.warn('%cElectron Security Warning', 'font-weight: bold;', warning)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user