X-Git-Url: http://jaekl.net/gitweb/?p=quanweb.git;a=blobdiff_plain;f=js%2FMain.js;fp=js%2FMain.js;h=46c77b00547c0ed1af86758b967f5511f9d7ca72;hp=22e7dd6b734212fc54fc79f9a8807318e2f7be5f;hb=2d64e9e8132f2973fb5f5859beabb4435a234ac9;hpb=bc4fa838dd6cecef40a0bca16a036c3e9438ee86 diff --git a/js/Main.js b/js/Main.js index 22e7dd6..46c77b0 100644 --- a/js/Main.js +++ b/js/Main.js @@ -20,14 +20,14 @@ BooksView.init(BooksModel); PagingController.init(BooksModel); SearchController.init(BooksModel); -if (Modernizr.fetch) { +if (Modernizr.promises) { 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.'); + // shim here to implement promises. 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, Firefox or Safari instead.'); } // ================