jchamet / html-table-sort

Chrome Extension. Add it to your browser to use. Clicking on a table column header <th> will reorder the rows of an HTML table in ascending/descending order.
MIT License
13 stars 9 forks source link

Does not work on local files #3

Closed bellwood closed 5 years ago

bellwood commented 8 years ago

With a file saved on my desktop loaded in Chrome as:

file:///Users/me/Desktop/example.html

...it does not work.

If I take that exact file and drop it on a domain:

http://example-domain.com/example.html

...it now works.

Thank you for your support =)

jchamet commented 8 years ago

Hm, the extension doesn't rely on any external libraries... I'll look into it!

bellwood commented 8 years ago

This might be related:

http://stackoverflow.com/questions/20748630/load-local-javascript-file-in-chrome-for-testing

Not specifically calling local .js files but the browser allowing JS on a local file

dlh3 commented 5 years ago

This issue is ancient now, but this is a Chrome security feature to protect you from extensions reading files on your local filesystem.

You can allow specific extensions to access file URLs (local files) in the individual extension's settings (chrome://extensions/?id=bpgbkjehkeffmmjfmdlmjjlffgkdcljp). See the toggle at the bottom of this screenshot.

image