Disable eval() since we never use it
This commit is contained in:
parent
eec61f5289
commit
a58e94e17e
1 changed files with 3 additions and 1 deletions
|
@ -19,8 +19,10 @@ window.config.localeMessages = ipc.sendSync('locale-data');
|
|||
|
||||
window.setBadgeCount = count => ipc.send('set-badge-count', count);
|
||||
|
||||
// We never do this in our code, so we'll prevent it everywhere
|
||||
// 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;
|
||||
|
||||
window.drawAttention = () => {
|
||||
console.log('draw attention');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue