Skip to content

Commit d148df0

Browse files
committed
remove extra strings
1 parent f54ad9e commit d148df0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/scripts.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
function loadJSON(callback) {
22
var xobj = new XMLHttpRequest();
33
xobj.overrideMimeType("application/json");
4-
xobj.open('GET', 'https://raw.githubusercontent.com/toddmotto/public-apis/master/json/entries.min.json', true); // Replace 'my_data' with the path to your file
4+
xobj.open('GET', 'https://raw.githubusercontent.com/toddmotto/public-apis/master/json/entries.min.json', true);
55
xobj.onreadystatechange = function () {
66
if (xobj.readyState == 4 && xobj.status == "200") {
7-
// Required use of an anonymous callback as .open will NOT return a value but simply returns undefined in asynchronous mode
7+
// Required use of an anonymous callback as .open will NOT return a value
8+
// but simply returns undefined in asynchronous mode
89
callback(xobj.responseText);
910
}
1011
};

0 commit comments

Comments
 (0)