diff options
author | Andrew Dolgov <[email protected]> | 2018-11-21 15:31:58 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-11-21 15:31:58 +0300 |
commit | 42bb935ae79b7d6ef614181cb00304539894ebfb (patch) | |
tree | d7668810ec15c7bb5a837a4eb43fbdedaebb95c6 /index.php | |
parent | 1ea4a3f80a503d43df4a835ed5647c4a93ca80bd (diff) |
notify user if serviceWorker support is missing
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -144,6 +144,10 @@ window.location.reload(); } }); + } else { + $(".container-main") + .addClass("alert alert-danger") + .html("Service worker support missing in browser (are you using plain HTTP?)."); } mark_offline_books(); @@ -152,7 +156,7 @@ }); </script> -<div class="container"> +<div class="container container-main"> <div class="modal fade" id="summary-modal" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> |