mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
Made eslint using 'browser' environment and added globals, because RainLoop is used in browsers.
This also allowed to remove all webpack 'externals' overhead.
This commit is contained in:
parent
c3a213802d
commit
e7180a86ce
81 changed files with 1857 additions and 1259 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import window from 'window';
|
||||
import ko from 'ko';
|
||||
|
||||
import { DesktopNotification, Magics } from 'Common/Enums';
|
||||
|
|
@ -136,7 +135,7 @@ class NotificationUserStore {
|
|||
|
||||
if (nessageData) {
|
||||
notification.onclick = () => {
|
||||
window.focus();
|
||||
focus();
|
||||
|
||||
if (nessageData.Folder && nessageData.Uid) {
|
||||
Events.pub('mailbox.message.show', [nessageData.Folder, nessageData.Uid]);
|
||||
|
|
@ -144,7 +143,7 @@ class NotificationUserStore {
|
|||
};
|
||||
}
|
||||
|
||||
window.setTimeout(
|
||||
setTimeout(
|
||||
(function(localNotifications) {
|
||||
return () => {
|
||||
if (localNotifications.cancel) {
|
||||
|
|
@ -169,7 +168,7 @@ class NotificationUserStore {
|
|||
* @returns {*|null}
|
||||
*/
|
||||
notificationClass() {
|
||||
return window.Notification && window.Notification.requestPermission ? window.Notification : null;
|
||||
return window.Notification && Notification.requestPermission ? Notification : null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue