Disable window.open(); has extra Electron functionalnity
(that we never use) https://electronjs.org/docs/api/browser-window-proxy
This commit is contained in:
parent
91c247ef8d
commit
559b2157d4
|
@ -19,6 +19,9 @@ 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
|
||||
window.open = () => null;
|
||||
|
||||
window.drawAttention = () => {
|
||||
console.log('draw attention');
|
||||
ipc.send('draw-attention');
|
||||
|
|
Loading…
Reference in New Issue