Merge branch 'xhr-local' of https://github.com/malyw/reveal.js into dev
This commit is contained in:
commit
2eb3d082ce
@ -219,7 +219,10 @@
|
|||||||
|
|
||||||
xhr.onreadystatechange = function() {
|
xhr.onreadystatechange = function() {
|
||||||
if( xhr.readyState === 4 ) {
|
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, {
|
section.outerHTML = slidify( xhr.responseText, {
|
||||||
separator: section.getAttribute( 'data-separator' ),
|
separator: section.getAttribute( 'data-separator' ),
|
||||||
|
Loading…
Reference in New Issue
Block a user