Browse Source

Prevent bug "window.close" related with Electron

https://github.com/electron/electron/issues/13843
pull/1873/head
Ramiro Saenz 7 years ago
parent
commit
9542213c58
  1. 2
      resources/js/rambox-service-api.js

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

@ -44,3 +44,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