Browse Source

Revert "Disable eval from webviews."

This reverts commit c982df1a7a.

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
pull/3202/head
TheGoddessInari 7 years ago
parent
commit
2f6e6ffa98
No known key found for this signature in database
GPG Key ID: 1209B1B7632D69A
  1. 8
      resources/js/rambox-service-api.js

8
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().`);
};

Loading…
Cancel
Save