aboutsummaryrefslogtreecommitdiffstats
path: root/notices/notices.js
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-03 07:46:42 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-03 07:46:42 +0800
commit376188ffc5dac4a0faca7db1257baec08592e380 (patch)
tree0b1f37e3d665ef2e4b16ee8c9bf439d39f786a0c /notices/notices.js
parent8c032323a23b4f0f8f5cbec6c442ee374009f4e5 (diff)
downloadtangerine-wallet-browser-376188ffc5dac4a0faca7db1257baec08592e380.tar
tangerine-wallet-browser-376188ffc5dac4a0faca7db1257baec08592e380.tar.gz
tangerine-wallet-browser-376188ffc5dac4a0faca7db1257baec08592e380.tar.bz2
tangerine-wallet-browser-376188ffc5dac4a0faca7db1257baec08592e380.tar.lz
tangerine-wallet-browser-376188ffc5dac4a0faca7db1257baec08592e380.tar.xz
tangerine-wallet-browser-376188ffc5dac4a0faca7db1257baec08592e380.tar.zst
tangerine-wallet-browser-376188ffc5dac4a0faca7db1257baec08592e380.zip
fix notices warning
Diffstat (limited to 'notices/notices.js')
-rw-r--r--notices/notices.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/notices/notices.js b/notices/notices.js
index d2ee50b89..6392b6381 100644
--- a/notices/notices.js
+++ b/notices/notices.js
@@ -1,5 +1,6 @@
// fs.readFileSync is inlined by browserify transform "brfs"
const fs = require('fs')
+const path = require('path')
module.exports = [
{
@@ -7,14 +8,14 @@ module.exports = [
read: false,
date: 'Thu Feb 09 2017',
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,
read: false,
date: 'Mon May 08 2017',
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,
@@ -22,13 +23,13 @@ module.exports = [
date: 'Tue Nov 28 2017',
title: 'Seed Phrase Alert',
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,
read: false,
date: 'Wed Jun 13 2018',
title: 'Phishing Warning',
- body: fs.readFileSync(__dirname + '/archive/notice_4.md', 'utf8'),
+ body: fs.readFileSync(path.join(__dirname, '/archive', 'notice_4.md'), 'utf8'),
},
]