Browse Source

Mark xhr.status=0 as successful

Sergey Gospodarets 11 years ago
parent
commit
873f2dbc96
1 changed files with 3 additions and 3 deletions
  1. 3 3
      plugin/markdown/markdown.js

+ 3 - 3
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' ),