Adds config file (quanlib.ini) support.
[quanweb.git] / js / BooksModel.js
index 984519d137409329027f20ca894beeeb18409ab0..75e065194ccdc49602033971208598b9bcde7c64 100644 (file)
@@ -71,13 +71,12 @@ var BooksModel = (function() {
         }
 
         fetch(url, {method:'GET', cache:'default'})
-            .then(response => response.json())
-            .then((jsonValue) => {
-                console.log('JSON response for info:  ', jsonValue);
+            .then(function(response) {return response.json();})
+            .then(function(jsonValue) {
                 my.cache = jsonValue;
                 notifyAll();    // inform all subscribers that the model has been updated
             })
-            .catch(err => {
+            .catch(function(err) {
                 var msg = 'Error fetching book details via URL:  ' + url + ': ' + err;
                 console.log(msg, err.stack);
                 report(msg);