Chrome Extension with Database API interface
问题 I want to update a div with a list of anchors that I generate from a local database in chrome. It's pretty simple stuff, but as soon as I try to add the data to the main.js file via a callback everything suddenly becomes undefined. Or the array length is set to 0. ( When it's really 18. ) Initially, I tried to install it into a new array and pass it back that way. Is there a setting that I need to specify in the chrome manifest.json in order to allow for communication with the database API? I