Browse Source

Prevent bug "window.close" related with Electron

https://github.com/electron/electron/issues/13843
pull/3202/head
Ramiro Saenz 7 years ago committed by TheGoddessInari
parent
commit
c3d082148f
No known key found for this signature in database
GPG Key ID: 1209B1B7632D69A
  1. 2
      resources/js/rambox-service-api.js

2
resources/js/rambox-service-api.js

@ -63,3 +63,5 @@ Notification = function(title, options) {
Notification.prototype = NativeNotification.prototype;
Notification.permission = NativeNotification.permission;
Notification.requestPermission = NativeNotification.requestPermission.bind(Notification);
window.close = function() { location.href = location.origin };

Loading…
Cancel
Save