In my extension, browser.tabs.query
works well.
But browser.tabs.show
gives "TypeError: browser.tabs.show is not a function"
error.
My script.js
content is copied from sample:
function onShown() {
console.log(`Shown`);
}
function onError(error) {
console.log(`Error: ${error}`);
}
browser.tabs.show(2).then(onShown, onError);
My html:
<!doctype html>
<html>
<script src="script.js"></script>
</html>
I couldn’t find such issue in Google or this forum.