Sha256: 36bdde35a5a9585a0b18d2f7e79757aa06c5f6bfecc46df7c3799a2c603c625e
Contents?: true
Size: 674 Bytes
Versions: 44
Compression:
Stored size: 674 Bytes
Contents
// 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) { // 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.') } }())
Version data entries
44 entries across 44 versions & 2 rubygems