I thought to make a firefox addon with Vue.js and wanted to use the API from the browser. For example to use browser.tabs or browser.dns. But when I use browser in the script part of a component I get the output that 'browser' is not defined.
Is it possible to access the API of the browser with vuejs?
browser.tabs and browser.dns are part of the Browser Extensions API. And Vue can be used to create browser extensions, so yes, it's possible to use that API from Vue.
For example, vitesse-webext is a starter template for creating cross-platform (including Chrome and Firefox) browser extensions with Vue.