Skip to content

Commit b89d9f6

Browse files
committed
Added DApp url bar (TBD) & changed behaviour for the menu selection
1 parent d22db77 commit b89d9f6

File tree

2 files changed

+871
-744
lines changed

2 files changed

+871
-744
lines changed

ethereal/assets/ext/http.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)