aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/ipfsContent.js
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-04 02:29:36 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-04 02:29:36 +0800
commit13b03ec090df70512d43e0d6acbe6bf60040a892 (patch)
tree77cfdf13c0e83c8e6d87099bfedddc3d58667de1 /app/scripts/lib/ipfsContent.js
parent595447ccac0c6d178d63850d45f0ad5456964e4f (diff)
downloadtangerine-wallet-browser-13b03ec090df70512d43e0d6acbe6bf60040a892.tar.gz
tangerine-wallet-browser-13b03ec090df70512d43e0d6acbe6bf60040a892.tar.zst
tangerine-wallet-browser-13b03ec090df70512d43e0d6acbe6bf60040a892.zip
fix lint errors
Diffstat (limited to 'app/scripts/lib/ipfsContent.js')
-rw-r--r--app/scripts/lib/ipfsContent.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/scripts/lib/ipfsContent.js b/app/scripts/lib/ipfsContent.js
index 2ddbe5558..a6b99b2f9 100644
--- a/app/scripts/lib/ipfsContent.js
+++ b/app/scripts/lib/ipfsContent.js
@@ -3,12 +3,12 @@ const resolver = require('./resolver.js')
module.exports = function (provider) {
extension.webRequest.onBeforeRequest.addListener(details => {
- const urlhttpreplace = details.url.replace(/\w+?:\/\//, "")
- const url = urlhttpreplace.replace(/[\\\/].*/g, "")
- let domainhtml = urlhttpreplace.match(/[\\\/].*/g)
+ const urlhttpreplace = details.url.replace(/\w+?:\/\//, '')
+ const url = urlhttpreplace.replace(/[\\/].*/g, '') // eslint-disable-line no-useless-escape
+ let domainhtml = urlhttpreplace.match(/[\\/].*/g) // eslint-disable-line no-useless-escape
let clearTime = null
- let name = url.replace(/\/$/g, "")
- if (domainhtml === null) domainhtml = [""]
+ const name = url.replace(/\/$/g, '')
+ if (domainhtml === null) domainhtml = ['']
extension.tabs.getSelected(null, tab => {
extension.tabs.update(tab.id, { url: 'loading.html' })