mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Disable eval() since we never use it
This commit is contained in:
parent
eec61f5289
commit
a58e94e17e
|
@ -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…
Reference in a new issue