create working extension with eslint configured locally

This commit is contained in:
iampeterbanjo
2016-10-30 13:04:47 +01:00
parent 4b96f89caa
commit 23fe5e01db
10 changed files with 74 additions and 37 deletions
+3 -11
View File
@@ -1,12 +1,4 @@
function getJSON(url, callback) {
let xhr = new XMLHttpRequest();
xhr.onload = function() {
callback(this.responseText);
};
xhr.open("GET", url, true);
xhr.send();
}
export function getUsefulContents(url, callback) {
getJSON(url, data => callback(JSON.parse(data)));
// we cant use export here
function getUsefulContents(callback) {
callback('Hello World');
}