aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-02-12 22:03:37 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-02-12 22:06:15 +0800
commitd735439de9f4f0bcbaab59afa7dab51e24788289 (patch)
tree24657dd38e90e00d89b4848da13f9ca2835613d8 /app/scripts
parentae084cef6c5cf7240e5fd1b3ff762e35dab5cf2b (diff)
downloadtangerine-wallet-browser-d735439de9f4f0bcbaab59afa7dab51e24788289.tar
tangerine-wallet-browser-d735439de9f4f0bcbaab59afa7dab51e24788289.tar.gz
tangerine-wallet-browser-d735439de9f4f0bcbaab59afa7dab51e24788289.tar.bz2
tangerine-wallet-browser-d735439de9f4f0bcbaab59afa7dab51e24788289.tar.lz
tangerine-wallet-browser-d735439de9f4f0bcbaab59afa7dab51e24788289.tar.xz
tangerine-wallet-browser-d735439de9f4f0bcbaab59afa7dab51e24788289.tar.zst
tangerine-wallet-browser-d735439de9f4f0bcbaab59afa7dab51e24788289.zip
Update NoticesController to use ES6 destructuring, const, let
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/notice-controller.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/notice-controller.js b/app/scripts/notice-controller.js
index ce686d9d1..6fe8b8cf0 100644
--- a/app/scripts/notice-controller.js
+++ b/app/scripts/notice-controller.js
@@ -1,4 +1,4 @@
-const EventEmitter = require('events').EventEmitter
+const {EventEmitter} = require('events')
const semver = require('semver')
const extend = require('xtend')
const ObservableStore = require('obs-store')
@@ -46,8 +46,8 @@ module.exports = class NoticeController extends EventEmitter {
markNoticeRead (noticeToMark, cb) {
cb = cb || function (err) { if (err) throw err }
try {
- var notices = this.getNoticesList()
- var index = notices.findIndex((currentNotice) => currentNotice.id === noticeToMark.id)
+ const notices = this.getNoticesList()
+ const index = notices.findIndex((currentNotice) => currentNotice.id === noticeToMark.id)
notices[index].read = true
notices[index].body = ''
this.setNoticesList(notices)