Commit 3551b8c1 authored by matthias.lang's avatar matthias.lang
Browse files

web: fix: replace ES6 arrow function with ES5/IE11 compatible expression

parent 5c381b6c
......@@ -362,13 +362,14 @@
url = location.protocol + '//' + location.host + '/pubsearch/v1/json?q=';
// Query our API
this.$http.get(url + encodeURIComponent(this.query)).then((response) => {
response.body.error ? this.error = response.body.error : this.resultData = response.body.results;
// Let the UI know we're done
this.loading = false;
//this.query = '';
});
this.$http.get(url + encodeURIComponent(this.query)).then(
function(response) {
response.body.error ? this.error = response.body.error : this.resultData = response.body.results;
// Let the UI know we're done
this.loading = false;
//this.query = '';
}
);
// TODO: error handling
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment