DEV Community

Discussion on: Reading files in a Chrome Extension

Collapse
 
naimiliu profile image
naimiliu • Edited

Hi Anthony, in step 1, I got a error :
Invalid value for 'web_accessible_resources[0]'. Entry must be a dictionary value.

"web_accessible_resources" : [
    "data/items_all.txt"
],
Enter fullscreen mode Exit fullscreen mode

But I don't know how to modify

Collapse
 
aussieguy profile image
Anthony Bruno

Chrome has changed the format of web_accessible_resources in manifest version 3 (developer.chrome.com/docs/extensio...)

"web_accessible_resources": [{
  "resources": ["data/items_all.txt"],
  "matches": [],
  "extension_ids": []
}]
Enter fullscreen mode Exit fullscreen mode

Thanks for pointing this out! I'll update the article to reflect this :)

Collapse
 
naimiliu profile image
naimiliu • Edited

Thanks for your reply. :)
I know how to use it.