mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 06:49:29 +08:00
24 lines
575 B
Text
24 lines
575 B
Text
/*
|
|
Copyright 2018 Google LLC
|
|
|
|
Use of this source code is governed by an MIT-style
|
|
license that can be found in the LICENSE file or at
|
|
https://opensource.org/licenses/MIT.
|
|
*/
|
|
|
|
import './_version.js';
|
|
|
|
// Give TypeScript the correct global.
|
|
declare let self: ServiceWorkerGlobalScope;
|
|
|
|
/**
|
|
* @return {boolean} Whether or not the current browser supports enabling
|
|
* navigation preload.
|
|
*
|
|
* @memberof workbox-navigation-preload
|
|
*/
|
|
function isSupported(): boolean {
|
|
return Boolean(self.registration && self.registration.navigationPreload);
|
|
}
|
|
|
|
export {isSupported};
|