Re-enable window.eval()

Close #333
This commit is contained in:
Yuya Ochiai
2017-02-03 22:11:40 +09:00
parent d9d51821e6
commit ca5632342e
3 changed files with 1 additions and 6 deletions

View File

@@ -4,10 +4,6 @@ const electron = require('electron');
const ipc = electron.ipcRenderer;
const notification = require('../js/notification');
window.eval = global.eval = () => {
throw new Error('Sorry, Mattermost does not support window.eval() for security reasons.');
};
Reflect.deleteProperty(global.Buffer); // http://electron.atom.io/docs/tutorial/security/#buffer-global
function hasClass(element, className) {