diff options
author | Sergey Gospodarets <shospodarets@spotware.com> | 2014-04-02 13:02:39 +0300 |
---|---|---|
committer | Sergey Gospodarets <shospodarets@spotware.com> | 2014-04-02 13:02:39 +0300 |
commit | 873f2dbc96e712d1afbc2f197c8b60287d7f728c (patch) | |
tree | cead4a7ed39a778061383fd00ec836b83f13dffc /plugin | |
parent | 75247a88606b1ab2e2158fe476fbe53340dc4934 (diff) | |
download | fosdem-2018-presentation-873f2dbc96e712d1afbc2f197c8b60287d7f728c.tar fosdem-2018-presentation-873f2dbc96e712d1afbc2f197c8b60287d7f728c.tar.gz |
Mark xhr.status=0 as successful
Diffstat (limited to 'plugin')
-rwxr-xr-x | plugin/markdown/markdown.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index efec14e..6c27a13 100755 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -220,9 +220,9 @@ xhr.onreadystatechange = function() { if( xhr.readyState === 4 ) { if ( - (xhr.status >= 200 && xhr.status < 300) || - xhr.status === 0 // file protocol yields status code 0 (useful for local debug, mobile applications etc.) - ) { + (xhr.status >= 200 && xhr.status < 300) || + xhr.status === 0 // file protocol yields status code 0 (useful for local debug, mobile applications etc.) + ) { section.outerHTML = slidify( xhr.responseText, { separator: section.getAttribute( 'data-separator' ), |