Permalink
Browse files

File, not ftp.

Chromefix.
  • Loading branch information...
shalecraig committed Oct 8, 2011
1 parent 302b7a5 commit 3c48f464c5ab4bdd3fba5744e686b4afb3fd5201
Showing with 1 addition and 1 deletion.
  1. +1 −1 bookmarklet-entire.js
View
@@ -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://');

0 comments on commit 3c48f46

Please sign in to comment.