aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Antuña Díez <eduadiez@gmail.com>2018-08-09 18:14:09 +0800
committerEduardo Antuña Díez <eduadiez@gmail.com>2018-08-09 18:14:09 +0800
commit543207b5af63424c1510438af356906696f5eb66 (patch)
tree9b00ebbb0516e9b45347d22be6030393da6afa9e
parentd4af5b7bec19e034563f6b4b6e61cc1764bf6aaf (diff)
downloadtangerine-wallet-browser-543207b5af63424c1510438af356906696f5eb66.tar.gz
tangerine-wallet-browser-543207b5af63424c1510438af356906696f5eb66.tar.zst
tangerine-wallet-browser-543207b5af63424c1510438af356906696f5eb66.zip
Fixed ENS to IPFS functionality in Firefox
`tabs.getSelected` is deprecated and it doesn't work in firefox replaced by `tabs.query({active: true}`
-rw-r--r--app/scripts/lib/ipfsContent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/ipfsContent.js b/app/scripts/lib/ipfsContent.js
index 5222151ea..9e401ebcd 100644
--- a/app/scripts/lib/ipfsContent.js
+++ b/app/scripts/lib/ipfsContent.js
@@ -5,7 +5,7 @@ module.exports = function (provider) {
function ipfsContent (details) {
const name = details.url.substring(7, details.url.length - 1)
let clearTime = null
- extension.tabs.getSelected(null, tab => {
+ extension.tabs.query({active: true}, tab => {
extension.tabs.update(tab.id, { url: 'loading.html' })
clearTime = setTimeout(() => {