aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-12-08 06:34:15 +0800
committerDan Finlay <dan@danfinlay.com>2016-12-17 02:55:42 +0800
commit851ba66cdd50aae8e2f9cb70fbed016990df2a2a (patch)
treee05a0e90bf48aebd3cb5a59c784a9ba1238532c5 /app
parent8819475a2ed2ee7c34e983ebb5ab12661be1a961 (diff)
downloadtangerine-wallet-browser-851ba66cdd50aae8e2f9cb70fbed016990df2a2a.tar
tangerine-wallet-browser-851ba66cdd50aae8e2f9cb70fbed016990df2a2a.tar.gz
tangerine-wallet-browser-851ba66cdd50aae8e2f9cb70fbed016990df2a2a.tar.bz2
tangerine-wallet-browser-851ba66cdd50aae8e2f9cb70fbed016990df2a2a.tar.lz
tangerine-wallet-browser-851ba66cdd50aae8e2f9cb70fbed016990df2a2a.tar.xz
tangerine-wallet-browser-851ba66cdd50aae8e2f9cb70fbed016990df2a2a.tar.zst
tangerine-wallet-browser-851ba66cdd50aae8e2f9cb70fbed016990df2a2a.zip
Add ability to show notices to user & get confirmation.
Implement generation of markdown for notice files. Create npm command. Enhance notice generation. Add test files to test multiple notices. Add basic markdown support to notices. Interval checks for updates. Add extensionizer and linker Add terms and conditions state file Add link support to disclaimer. Changelog addition.
Diffstat (limited to 'app')
-rw-r--r--app/scripts/metamask-controller.js40
1 files changed, 22 insertions, 18 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 65619af82..65eda7342 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -21,6 +21,9 @@ module.exports = class MetamaskController {
this.noticeController = new NoticeController({
configManager: this.configManager,
})
+ this.noticeController = new NoticeController({
+ configManager: this.configManager,
+ })
this.provider = this.initializeProvider(opts)
this.ethStore = new EthStore(this.provider)
this.idStore.setStore(this.ethStore)
@@ -298,14 +301,6 @@ module.exports = class MetamaskController {
}
- checkNotices () {
- try {
- this.configManager.updateNoticesList()
- } catch (e) {
- console.error('Error in checking notices.')
- }
- }
-
// notice
markNoticeRead (notice, cb) {
@@ -317,6 +312,25 @@ module.exports = class MetamaskController {
}
}
+ checkNotices () {
+ try {
+ this.configManager.updateNoticesList()
+ } catch (e) {
+ console.error('Error in checking notices.')
+ }
+ }
+
+ scheduleNoticeCheck () {
+ if (this.noticeCheck) {
+ clearInterval(this.noticeCheck)
+ }
+ this.noticeCheck = setInterval(() => {
+ this.configManager.updateNoticesList()
+ }, 300000)
+ }
+
+ // disclaimer
+
agreeToDisclaimer (cb) {
try {
this.configManager.setConfirmed(true)
@@ -359,7 +373,6 @@ module.exports = class MetamaskController {
}, 300000)
}
-<<<<<<< HEAD
agreeToEthWarning (cb) {
try {
this.configManager.setShouldntShowWarning()
@@ -367,15 +380,6 @@ module.exports = class MetamaskController {
} catch (e) {
cb(e)
}
-=======
- scheduleNoticeCheck () {
- if (this.noticeCheck) {
- clearInterval(this.noticeCheck)
- }
- this.noticeCheck = setInterval(() => {
- this.configManager.updateNoticesList()
- }, 300000)
->>>>>>> 25acad7... Add ability to show notices to user & get confirmation.
}
// called from popup