Update electron to 15.3.0

This commit is contained in:
Fedor Indutny 2021-11-08 22:43:37 +01:00 committed by GitHub
parent 7de340a104
commit 519ca05911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 525 additions and 2393 deletions

View file

@ -118,8 +118,12 @@ try {
// We never do these in our code, so we'll prevent it everywhere
window.open = () => null;
// eslint-disable-next-line no-eval, no-multi-assign
window.eval = global.eval = () => null;
// Playwright uses `eval` for `.evaluate()` API
if (!config.enableCI) {
// eslint-disable-next-line no-eval, no-multi-assign
window.eval = global.eval = () => null;
}
window.drawAttention = () => {
log.info('draw attention');
@ -436,9 +440,8 @@ try {
});
if (config.enableCI) {
const { CI, electronRequire } = require('./ts/CI');
const { CI } = require('./ts/CI');
window.CI = new CI(title);
window.electronRequire = electronRequire;
}
// these need access to window.Signal: