1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

fix notices warning

This commit is contained in:
brunobar79 2018-07-02 19:46:42 -04:00
parent 8c032323a2
commit 376188ffc5

View File

@ -1,5 +1,6 @@
// fs.readFileSync is inlined by browserify transform "brfs" // fs.readFileSync is inlined by browserify transform "brfs"
const fs = require('fs') const fs = require('fs')
const path = require('path')
module.exports = [ module.exports = [
{ {
@ -7,14 +8,14 @@ module.exports = [
read: false, read: false,
date: 'Thu Feb 09 2017', date: 'Thu Feb 09 2017',
title: 'Terms of Use', title: 'Terms of Use',
body: fs.readFileSync(__dirname + '/archive/notice_0.md', 'utf8'), body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_0.md'), 'utf8'),
}, },
{ {
id: 2, id: 2,
read: false, read: false,
date: 'Mon May 08 2017', date: 'Mon May 08 2017',
title: 'Privacy Notice', title: 'Privacy Notice',
body: fs.readFileSync(__dirname + '/archive/notice_2.md', 'utf8'), body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_2.md'), 'utf8'),
}, },
{ {
id: 3, id: 3,
@ -22,13 +23,13 @@ module.exports = [
date: 'Tue Nov 28 2017', date: 'Tue Nov 28 2017',
title: 'Seed Phrase Alert', title: 'Seed Phrase Alert',
firstVersion: '<=3.12.0', firstVersion: '<=3.12.0',
body: fs.readFileSync(__dirname + '/archive/notice_3.md', 'utf8'), body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_3.md'), 'utf8'),
}, },
{ {
id: 4, id: 4,
read: false, read: false,
date: 'Wed Jun 13 2018', date: 'Wed Jun 13 2018',
title: 'Phishing Warning', title: 'Phishing Warning',
body: fs.readFileSync(__dirname + '/archive/notice_4.md', 'utf8'), body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_4.md'), 'utf8'),
}, },
] ]