Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

File, not ftp.

Chromefix.
  • Loading branch information...
commit 3c48f464c5ab4bdd3fba5744e686b4afb3fd5201 1 parent 302b7a5
@shalecraig authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bookmarklet-entire.js
View
2  bookmarklet-entire.js
@@ -39,7 +39,7 @@ function runPerfectPixel() {
if (typeof window.FileReader === 'undefined') {
alert('File API & FileReader unavailable. Please try a better browser?');
setToGo = false;
- } else if (location.protocol === 'ftp://' && navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
+ } else if (location.protocol === 'file:' && navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
statusBox.html('It seems like you\'re hosting the page via file://. <br/>' +
'Due to chrome security bug <a href=\"http://code.google.com/p/chromium/issues/detail?id=47416\">#47416</a>, files cannot be read locally.<br/>' +
'Try hosting it locally via http://');
Please sign in to comment.
Something went wrong with that request. Please try again.