Wrong relative paths

34 views
Skip to first unread message

Siddardha G

unread,
Mar 13, 2013, 7:30:19 AM3/13/13
to bite-d...@googlegroups.com
Hi,

   The extension loads, but on clicking the BITE logo the text appears without the styles and nothing works. The developer console says - "Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension". On looking closely, I've observed that the resources being requested are "chrome_extension_id//styles/consoles.css" and "chrome_extension_id//imgs/logo-24x24.png". There are two forward slashes there which is not the correct path. So, I replaced all "/styles" with "styles" and "/imgs" with "imgs" in "genfiles/extension/content_script.js", and built it again. Now, the extension works like a charm!

--
Siddardha

Jason Stredwick

unread,
Mar 14, 2013, 2:56:34 PM3/14/13
to bite-d...@googlegroups.com
I will take a look at it soon.  Thank you for pointing it out to me.

Siddardha G

unread,
Mar 14, 2013, 4:02:43 PM3/14/13
to bite-d...@googlegroups.com
Actually, I think you need to add 'styles/consoles.css' and 'logo-24x24.png' to the 'web_accessible_resources' key in the manifest.json file. Otherwise the resources weren't loading. 
Reply all
Reply to author
Forward
0 new messages