refactor: Port security warnings to TypeScript (#16937)

* refactor: Port security-warnings to TypeScript

* chore: make aliasify work on .ts files as well

* refactor: Implement feedback <3

* refactor: Correctly call executeJavaScript
This commit is contained in:
Felix Rieseberg 2019-02-16 17:06:30 -08:00 committed by Samuel Attard
parent 0a84c61074
commit 6b3ff4f1f7
5 changed files with 27 additions and 22 deletions

View file

@ -168,5 +168,6 @@ for (const { preloadPath, preloadSrc, preloadError } of preloadScripts) {
// Warn about security issues
if (process.isMainFrame) {
require('@electron/internal/renderer/security-warnings')()
const { securityWarnings } = require('@electron/internal/renderer/security-warnings')
securityWarnings()
}