diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-04-06 10:18:38 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-04-06 10:18:38 +0200 |
commit | c87d7db93064bac472e1cc80bee28c4dcc92565b (patch) | |
tree | 27b3f4ab767d702d494215b293c8e0571c4ca309 /plugin | |
parent | 2eb3d082ce0d406b128c17e03b53ee2ccb7a500d (diff) | |
download | fosdem-2018-presentation-c87d7db93064bac472e1cc80bee28c4dcc92565b.tar fosdem-2018-presentation-c87d7db93064bac472e1cc80bee28c4dcc92565b.tar.gz |
code format tweak
Diffstat (limited to 'plugin')
-rwxr-xr-x | plugin/markdown/markdown.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 9c0c91a..9afee06 100755 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -219,10 +219,8 @@ 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.) - ) { + // file protocol yields status code 0 (useful for local debug, mobile applications etc.) + if ( ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status === 0 ) { section.outerHTML = slidify( xhr.responseText, { separator: section.getAttribute( 'data-separator' ), |