Disable eval() since we never use it

This commit is contained in:
Scott Nonnenberg 2018-05-24 09:32:18 -07:00
parent eec61f5289
commit a58e94e17e

View file

@ -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');