How do you use chrome.tabs.getCurrent to get the page object in a Chrome extension?

前端 未结 4 903
甜味超标
甜味超标 2020-12-29 01:53

The code is meant to output the current tab object for the page the user is viewing to the console but it just outputs undefined. It\'s run from within a browser action page

4条回答
提交回复
热议问题