projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
124e8d9
)
allow XHRs from file:/// URLs with the right flags
author
Dan Vanderkam
<danvk@google.com>
Wed, 1 Jun 2011 15:57:51 +0000
(11:57 -0400)
committer
Dan Vanderkam
<danvk@google.com>
Wed, 1 Jun 2011 15:57:51 +0000
(11:57 -0400)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
b5afc7c
..
d89056e
100644
(file)
--- 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);
}
}