FIX: Use the `browser` object instead of `chrome` (inter-browser compatibility)

This commit is contained in:
Fabio Manganiello 2023-01-17 20:30:06 +01:00
parent 268eba900f
commit cb8c201b95
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ export default {
},
async mounted() {
const [tab] = await chrome.tabs.query({ active: true, currentWindow: true })
const [tab] = await browser.tabs.query({ active: true, currentWindow: true })
this.feedUrl = await browser.tabs.sendMessage(tab.id, {type: 'extractFeedUrl'})
},
}