Created
June 10, 2017 03:04
-
-
Save stepanger/289deca803951435f815d53334a3197f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var xhr = new XMLHttpRequest(); | |
xhr.open("GET", "https://raw.githubusercontent.com/stepanger/Chocolate/storage/data/base.json", true); | |
xhr.onreadystatechange = function() { | |
if (xhr.readyState == 4) { | |
console.log( xhr.responseText ); | |
} | |
} | |
xhr.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment