aboutsummaryrefslogtreecommitdiff
path: root/plugin/markdown
diff options
context:
space:
mode:
authorSergey Gospodarets <shospodarets@spotware.com>2014-04-02 13:02:39 +0300
committerSergey Gospodarets <shospodarets@spotware.com>2014-04-02 13:02:39 +0300
commit873f2dbc96e712d1afbc2f197c8b60287d7f728c (patch)
treecead4a7ed39a778061383fd00ec836b83f13dffc /plugin/markdown
parent75247a88606b1ab2e2158fe476fbe53340dc4934 (diff)
downloadfreenode-live-2017-presentation-873f2dbc96e712d1afbc2f197c8b60287d7f728c.tar
freenode-live-2017-presentation-873f2dbc96e712d1afbc2f197c8b60287d7f728c.tar.gz
Mark xhr.status=0 as successful
Diffstat (limited to 'plugin/markdown')
-rwxr-xr-xplugin/markdown/markdown.js6
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' ),