2017-09-28 19:18:12 -04:00
|
|
|
/**
|
|
|
|
* @license
|
2020-05-19 15:08:49 -04:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2017-09-28 19:18:12 -04:00
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
|
|
|
import {Adapter} from './src/adapter';
|
|
|
|
import {CacheDatabase} from './src/db-cache';
|
|
|
|
import {Driver} from './src/driver';
|
|
|
|
|
2021-06-23 08:27:51 -04:00
|
|
|
const scope = self as unknown as ServiceWorkerGlobalScope;
|
2017-09-28 19:18:12 -04:00
|
|
|
|
2021-06-23 08:27:51 -04:00
|
|
|
const adapter = new Adapter(scope.registration.scope, self.caches);
|
|
|
|
new Driver(scope, adapter, new CacheDatabase(adapter));
|