text: "use strict";function registerSW(){"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(function(){console.log("Service Worker Registered")},function(e){console.log("Service Worker Registration Error: ",e)})}var connectionStatus=function(e){if(e){var n=document.getElementById("offlinealert");n&&n.parentElement.removeChild(n),DBHelper.checkOfflineReviews().then(function(e){e.forEach(function(e){return DBHelper.removeOfflineReview(e)})}),DBHelper.checkOfflineFavourites().then(function(e){e.forEach(function(e){return DBHelper.removeOfflineFavourite(e)})})}else{var t=document.createElement("p");t.id="offlinealert",t.setAttribute("role","alert");var o=document.createTextNode("Your connection is lost.");t.appendChild(o),document.body.appendChild(t)}};window.addEventListener("load",function(){registerSW(),navigator.onLine?connectionStatus(!0):connectionStatus(!1)}),window.addEventListener("online",function(){return connectionStatus(!0)}),window.addEventListener("offline",function(){return connectionStatus(!1)});
  //# sourceMappingURL=app.js.map
  