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:
parent
0a84c61074
commit
6b3ff4f1f7
5 changed files with 27 additions and 22 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue