From 39338e7479a9dc1b0ef3ea7fd12290fa37c57b29 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Wed, 1 Jun 2011 11:57:51 -0400 Subject: [PATCH] allow XHRs from file:/// URLs with the right flags --- dygraph.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.7.4