aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/site/sw.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-05-10 14:21:36 +0200
committerMario Vavti <mario@mariovavti.com>2019-05-10 14:21:36 +0200
commit9866053f0ce44721c11990c9f9407e7428757c99 (patch)
tree6e414efa36c3bda00205918cecb9122f951427e3 /vendor/twbs/bootstrap/site/sw.js
parent89a2c1a09c896ac3a23df26a1783f5c682188a56 (diff)
downloadvolse-hubzilla-9866053f0ce44721c11990c9f9407e7428757c99.tar.gz
volse-hubzilla-9866053f0ce44721c11990c9f9407e7428757c99.tar.bz2
volse-hubzilla-9866053f0ce44721c11990c9f9407e7428757c99.zip
update bootstrap to version 4.3.1
Diffstat (limited to 'vendor/twbs/bootstrap/site/sw.js')
-rw-r--r--vendor/twbs/bootstrap/site/sw.js28
1 files changed, 25 insertions, 3 deletions
diff --git a/vendor/twbs/bootstrap/site/sw.js b/vendor/twbs/bootstrap/site/sw.js
index bc67fee25..db9229cf0 100644
--- a/vendor/twbs/bootstrap/site/sw.js
+++ b/vendor/twbs/bootstrap/site/sw.js
@@ -1,5 +1,27 @@
-/* global workbox:false */
+// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
+// IT'S ALL JUST JUNK FOR OUR DOCS!
+// ++++++++++++++++++++++++++++++++++++++++++
-self.importScripts('docs/4.1/assets/js/vendor/{fileName}')
+(function () {
+ 'use strict'
-workbox.precaching.precacheAndRoute([])
+ if ('serviceWorker' in navigator) {
+ window.addEventListener('load', function () {
+ navigator.serviceWorker.getRegistrations().then(function (registrations) {
+ for (var registration of registrations) {
+ registration.unregister()
+ .then(function () {
+ return self.clients.matchAll()
+ })
+ .then(function (clients) {
+ clients.forEach(function (client) {
+ if (client.url && 'navigate' in client) {
+ client.navigate(client.url)
+ }
+ })
+ })
+ }
+ })
+ })
+ }
+}())