We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d22db77 commit b89d9f6Copy full SHA for b89d9f6
ethereal/assets/ext/http.js
@@ -0,0 +1,13 @@
1
+// this function is included locally, but you can also include separately via a header definition
2
+function request(url, callback) {
3
+ var xhr = new XMLHttpRequest();
4
+ xhr.onreadystatechange = (function(req) {
5
+ return function() {
6
+ if(req.readyState === 4) {
7
+ callback(req);
8
+ }
9
10
+ })(xhr);
11
+ xhr.open('GET', url, true);
12
+ xhr.send('');
13
+}
0 commit comments