diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-04-06 10:16:46 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-04-06 10:16:46 +0200 |
commit | 2eb3d082ce0d406b128c17e03b53ee2ccb7a500d (patch) | |
tree | 25e495494904e53b6bb4c785039c21648704fcad /plugin | |
parent | 3aaca471b193cf2ff4bb54432e59798b6c688a43 (diff) | |
parent | 873f2dbc96e712d1afbc2f197c8b60287d7f728c (diff) | |
download | perl-software-in-gnu-guix-2eb3d082ce0d406b128c17e03b53ee2ccb7a500d.tar perl-software-in-gnu-guix-2eb3d082ce0d406b128c17e03b53ee2ccb7a500d.tar.gz |
Merge branch 'xhr-local' of https://github.com/malyw/reveal.js into dev
Diffstat (limited to 'plugin')
-rwxr-xr-x | plugin/markdown/markdown.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 718475b..9c0c91a 100755 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -219,7 +219,10 @@ xhr.onreadystatechange = function() { if( xhr.readyState === 4 ) { - if ( xhr.status >= 200 && xhr.status < 300 ) { + if ( + (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' ), |