From: Dan Vanderkam Date: Wed, 1 Jun 2011 15:57:51 +0000 (-0400) Subject: allow XHRs from file:/// URLs with the right flags X-Git-Tag: v1.0.0~463^2~2^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=39338e7479a9dc1b0ef3ea7fd12290fa37c57b29;p=dygraphs.git allow XHRs from file:/// URLs with the right flags --- diff --git a/dygraph.js b/dygraph.js index b5afc7c..d89056e 100644 --- a/dygraph.js +++ b/dygraph.js @@ -3715,7 +3715,8 @@ Dygraph.prototype.start_ = function() { var caller = this; req.onreadystatechange = function () { if (req.readyState == 4) { - if (req.status == 200) { + if (req.status == 200 || // Normal http + req.status == 0) { // Chrome w/ --allow-file-access-from-files caller.loadedEvent_(req.responseText); } }