diff options
author | obscuren <geffobscura@gmail.com> | 2014-09-19 19:33:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-09-19 19:34:37 +0800 |
commit | ae1de6593c31fbaa4429588cea2702dd5b01a722 (patch) | |
tree | d19c960d08524f0c5449ba87ab7ef4054b782b32 /mist/assets/ext/http.js | |
parent | 723074e71bbe1638a5cec9b996b1eed07a76fd72 (diff) | |
download | dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar.gz dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar.bz2 dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar.lz dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar.xz dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar.zst dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.zip |
renamed
Diffstat (limited to 'mist/assets/ext/http.js')
-rw-r--r-- | mist/assets/ext/http.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mist/assets/ext/http.js b/mist/assets/ext/http.js new file mode 100644 index 000000000..725ce8e6b --- /dev/null +++ b/mist/assets/ext/http.js @@ -0,0 +1,13 @@ +// this function is included locally, but you can also include separately via a header definition +function request(url, callback) { + var xhr = new XMLHttpRequest(); + xhr.onreadystatechange = (function(req) { + return function() { + if(req.readyState === 4) { + callback(req); + } + } + })(xhr); + xhr.open('GET', url, true); + xhr.send(''); +} |