Skip to content Skip to sidebar Skip to footer

Chrome Api Is Undefined

I'm trying to get a Chrome extension that interacts with Dropbox's API, using OAuth2. I have read the Identity API documentation but I am confused on where to invoke chrome.identit

Solution 1:

In general, if chrome.something is undefined while it should exist, you don't have permissions to use it. Either you need a permission in your manifest, or it cannot be used in the current context (i.e. a content script).

In your case, you must be missing "identity" permission in the manifest. It's specified in the documentation header.

Post a Comment for "Chrome Api Is Undefined"