From 2f6e6ffa98f66b8fefca02c3bfe615b4ed85ef5d Mon Sep 17 00:00:00 2001 From: TheGoddessInari Date: Tue, 28 Aug 2018 14:11:17 -0700 Subject: [PATCH] Revert "Disable eval from webviews." This reverts commit c982df1a7a8fbfc61e78665fc4c9069fb60a606a. Apparently ICQ is broken, I'll try to get them to fix it, or make a blacklist. Could use a UI person's help if we need more options. <3 --- resources/js/rambox-service-api.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/resources/js/rambox-service-api.js b/resources/js/rambox-service-api.js index 88084c91..a1a3c58a 100644 --- a/resources/js/rambox-service-api.js +++ b/resources/js/rambox-service-api.js @@ -63,11 +63,3 @@ Notification = function(title, options) { Notification.prototype = NativeNotification.prototype; Notification.permission = NativeNotification.permission; Notification.requestPermission = NativeNotification.requestPermission.bind(Notification); - -/** - * Disable eval for security reasons. - */ - // eslint-disable-next-line no-eval - window.eval = global.eval = function () { - throw new Error(`Sorry, this app does not support window.eval().`); - };