mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-11-10 00:11:34 +08:00
lint(tray): Fix "new Number" not allowed
This commit is contained in:
parent
5561462568
commit
b481f15492
1 changed files with 3 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ class TrayStore extends NylasStore {
|
||||||
this._platform = platform;
|
this._platform = platform;
|
||||||
|
|
||||||
this._unreadIcon = NativeImage.createFromPath(UNREAD_ICON_PATH);
|
this._unreadIcon = NativeImage.createFromPath(UNREAD_ICON_PATH);
|
||||||
this._unreadString = new Number(UnreadBadgeStore.count()).toLocaleString();
|
this._unreadString = UnreadBadgeStore.count().toLocaleString();
|
||||||
this._baseIcon = NativeImage.createFromPath(BASE_ICON_PATH);
|
this._baseIcon = NativeImage.createFromPath(BASE_ICON_PATH);
|
||||||
this._menu = _buildMenu();
|
this._menu = _buildMenu();
|
||||||
this._icon = this._getIconImg();
|
this._icon = this._getIconImg();
|
||||||
|
|
@ -83,7 +83,7 @@ class TrayStore extends NylasStore {
|
||||||
return out2x;
|
return out2x;
|
||||||
},
|
},
|
||||||
'default': ()=> {
|
'default': ()=> {
|
||||||
return this._unreadString != '0' ? this._unreadIcon : this._baseIcon;
|
return this._unreadString !== '0' ? this._unreadIcon : this._baseIcon;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -91,7 +91,7 @@ class TrayStore extends NylasStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
_onUnreadCountChanged() {
|
_onUnreadCountChanged() {
|
||||||
this._unreadString = new Number(UnreadBadgeStore.count()).toLocaleString();
|
this._unreadString = UnreadBadgeStore.count().toLocaleString();
|
||||||
this._icon = this._getIconImg();
|
this._icon = this._getIconImg();
|
||||||
this.trigger();
|
this.trigger();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue