Web
Make Your WordPress Website Has The Ability To Check Network Connection.
The post introduce a way to make your wordpress website has the ability to check network connection. Install the plugin Insert Headers and Footers for wordpress. Add the following code in header part. <script> if (“serviceWorker” in navigator) { navigator.serviceWorker.register(“/serviceworker.js”) .then(function(registration) { console.log(“Service Worker registered with scope:”, registration.scope); }).catch(function(err) { Read more…