Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.

I need help with problems loading my landing page. I keep getting this messages on my "inspector" in chrome -

Denying load of chrome-extension://bjgfdlplhmndoonmofmflcbiohgbkifn/js/lib/jquery-2.0.2.min.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.

Denying load of chrome-extension://bjgfdlplhmndoonmofmflcbiohgbkifn/js/lib/backbone-min.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.

GET chrome-extension://invalid/

This is the link for my website http://www.itayroisman.com

Please help me with this issue.

like image 847
Itay Roisman Avatar asked Aug 12 '13 06:08

Itay Roisman


3 Answers

The Hootsuite chrome extension doesn't seem to be compatible with the latest build of chrome. Go to tools>extensions and click Developer mode. The id numbers come up on each of your extensions and you can match them to the errors in Developer Tools

like image 166
Peter Avatar answered Sep 21 '22 23:09

Peter


I found another anwser may be OK.

Just remove this line from the top of jquery file

//@ sourceMappingURL=jquery-1.10.2.min.map If you check the source of Jquery 1.10.2, it has included source map line on the top. I hope you are not using Source Maps. For more details just check these links:

http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/ jQuery's jquery-1.10.2.min.map is triggering a 404 (Not Found) Alternate approach

Download the source map file from jquery downloads page and put jquery-1.10.2.min.map in the extension directory. Download uncompressed source code as well and put in the extension directory. Basically you need three files [SourceMap, Compressed, Uncompressed]. Add these map file path and uncompressed file paths to web_accesible resources.

like image 29
user674158 Avatar answered Sep 19 '22 23:09

user674158


I just had the same problem.

If you're not using the the sourcemap:

  1. Open your jquery.js, remove the following line fro mthe top of the file:

    //@ sourceMappingURL=jquery-2.0.3.min.map

If you do want the sourcemap:

  1. Download code.jquery.com/yourfilename (see the comment in your jquery file, mentioned above)

  2. Add a line line

    "web_accessible_resources": [ "js/jquery-2.0.3.min.map" ],

    To your manifest.json

  3. Reload your extension.

like image 39
mikemaccana Avatar answered Sep 18 '22 23:09

mikemaccana