-//QuanLib: eBook Library
-//(C) 2017 by Christian Jaekl (cejaekl@yahoo.com)
+// QuanLib: eBook Library
+// Copyright (C) 2017 by Christian Jaekl (cejaekl@yahoo.com)
'use strict';
PagingController.init(BooksModel);
SearchController.init(BooksModel);
+if (Modernizr.fetch) {
+ console.log('quanweb: browser feature check: OK');
+}
+else {
+ // If we cared about supporting older browsers (at this point, IE11 and Adroid 4.x's built-in browser,
+ // neither of which is due to receive security patch support for much longer), then we would insert a
+ // shim here to implement the fetch API. But, in this case, we don't and won't.
+ alert('Sorry, this page will not work in your browser.\nPlease use a recent version of Chrome, Edge or Firefox instead.');
+}
+
// ================
// Global functions
//