Skip to content
Snippets Groups Projects
Commit 873f2dbc authored by Sergey Gospodarets's avatar Sergey Gospodarets
Browse files

Mark xhr.status=0 as successful

parent 75247a88
Branches
No related tags found
No related merge requests found
......@@ -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' ),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment