Fixed ENS to IPFS functionality in Firefox

`tabs.getSelected` is deprecated and it doesn't work in firefox replaced by `tabs.query({active: true}`
feature/default_network_editable
Eduardo Antuña Díez 6 years ago
parent d4af5b7bec
commit 543207b5af
  1. 2
      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(() => {

Loading…
Cancel
Save