2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Remove service worker from v4.0 and v4.1.

This commit is contained in:
XhmikosR
2018-12-23 14:41:11 +02:00
parent 915830f154
commit 3a0c275069
17 changed files with 30 additions and 1625 deletions
-17
View File
@@ -1,17 +0,0 @@
/* eslint no-console:off */
(function () {
'use strict'
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('/sw.js').then(function (registration) { // eslint-disable-line compat/compat
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.')
}
}())