Urara-Blog/node_modules/.pnpm-store/v3/files/9e/774d07fc9031c52a77567727436de9b4c592d7e2b57689160edfe3e3c19c014b0f38a58d13011d07797f7371cdf58c944c77e4d3b7be6d2d66e7521e1d475b
2022-08-14 01:14:53 +08:00

20 lines
538 B
Text

/*
Copyright 2019 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';
/**
* A minimal `Event` subclass shim.
* This doesn't *actually* subclass `Event` because not all browsers support
* constructable `EventTarget`, and using a real `Event` will error.
* @private
*/
export class WorkboxEvent {
constructor(type, props) {
this.type = type;
Object.assign(this, props);
}
}