0

I am building a chrome extension and using chrome.bookmarks api. When I do

console.log(chrome.bookmarks) 

it logs undefined in normal development mode. When I load using load unpacked extensions, it shows up correctly.

Is there a way to have chrome instance available in development mode else it becomes very tedious to develop, like making changes and console log it, building it, then open extension popup and inspecting the console of the popup.

"permissions": ["bookmarks"], 

Is there a workaround this?

1
  • 1
    No, there's no way, but you don't have to close the popup. Simply press Ctrl-R or F5 inside devtools for the popup to reload it or enable HMR in your build config.
    – woxxom
    CommentedJan 5 at 17:36

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.