diff options
| author | Mark Otto <[email protected]> | 2018-07-24 17:48:18 -0700 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-10-20 16:00:28 +0300 |
| commit | 5bf37eba532aae1ec9decdc81b7ae6bb8b7e37a4 (patch) | |
| tree | 6997c3ed175154106e39be1dfefe32fd14a7f43a /site/docs | |
| parent | b1dc6b324c33bc6a4b0cb2dc06939136e32d0e0c (diff) | |
| download | bootstrap-5bf37eba532aae1ec9decdc81b7ae6bb8b7e37a4.tar.xz bootstrap-5bf37eba532aae1ec9decdc81b7ae6bb8b7e37a4.zip | |
Remove service worker
Diffstat (limited to 'site/docs')
| -rw-r--r-- | site/docs/4.1/assets/js/src/pwa.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/site/docs/4.1/assets/js/src/pwa.js b/site/docs/4.1/assets/js/src/pwa.js deleted file mode 100644 index 9d2b7fbed..000000000 --- a/site/docs/4.1/assets/js/src/pwa.js +++ /dev/null @@ -1,21 +0,0 @@ -// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT -// IT'S ALL JUST JUNK FOR OUR DOCS! -// ++++++++++++++++++++++++++++++++++++++++++ - -/* eslint no-console:off */ - -(function () { - 'use strict' - - if ('serviceWorker' in navigator) { - window.addEventListener('load', function () { - navigator.serviceWorker.register('/sw.js').then(function (registration) { - console.log('ServiceWorker registration successful with scope: ', registration.scope) - }).catch(function (err) { - console.log('ServiceWorker registration failed: ', err) - }) - }) - } else { - console.log('Service workers are not supported.') - } -}()) |
