diff --git a/app/assets/js/scripts/actionbinder.js b/app/assets/js/scripts/actionbinder.js index ff7d779f..1ec41cf0 100644 --- a/app/assets/js/scripts/actionbinder.js +++ b/app/assets/js/scripts/actionbinder.js @@ -13,9 +13,9 @@ document.addEventListener('readystatechange', function(){ } } - if (document.readyState === 'interactive'){ + /*if (document.readyState === 'interactive'){ - } + }*/ }, false) /* Overlay Wrapper Functions */ diff --git a/app/assets/js/scripts/uicore.js b/app/assets/js/scripts/uicore.js index c2812e2b..6cc99067 100644 --- a/app/assets/js/scripts/uicore.js +++ b/app/assets/js/scripts/uicore.js @@ -8,6 +8,12 @@ const $ = require('jquery'); const {remote, shell, webFrame} = require('electron') +// Disable eval function. +// eslint-disable-next-line +window.eval = global.eval = function () { + throw new Error('Sorry, this app does not support window.eval().') +} + // Disable zoom, needed for darwin. webFrame.setZoomLevel(0) webFrame.setVisualZoomLevelLimits(1, 1)