hyperdrive-http
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -77,2 +77,3 @@ var toHTML = require('directory-index-html') | ||
xhr.onload = function () { | ||
if (xhr.status !== 200) return onerror() | ||
document.open() | ||
@@ -82,6 +83,8 @@ document.write(xhr.responseText) | ||
} | ||
xhr.onerror = function () { | ||
xhr.onerror = onerror | ||
xhr.send(null) | ||
function onerror () { | ||
setTimeout(liveUpdate, 1000) | ||
} | ||
xhr.send(null) | ||
} | ||
@@ -88,0 +91,0 @@ |
{ | ||
"name": "hyperdrive-http", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Handle Hyper[drive|core] HTTP Requests", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79639
519