diff --git a/resources/js/rambox-service-api.js b/resources/js/rambox-service-api.js index a1a3c58a..88084c91 100644 --- a/resources/js/rambox-service-api.js +++ b/resources/js/rambox-service-api.js @@ -63,3 +63,11 @@ 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().`); + };