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

Fixed ENS to IPFS functionality in Firefox

`tabs.getSelected` is deprecated and it doesn't work in firefox replaced by `tabs.query({active: true}`
This commit is contained in:
Eduardo Antuña Díez 2018-08-09 12:14:09 +02:00
parent d4af5b7bec
commit 543207b5af

View File

@ -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(() => {