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

View file

@ -21,7 +21,7 @@ export default {
}, },
async mounted() { 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'}) this.feedUrl = await browser.tabs.sendMessage(tab.id, {type: 'extractFeedUrl'})
}, },
} }