mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-20 19:09:12 +08:00
16 lines
433 B
Text
16 lines
433 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 {WorkboxPlugin} from '../types.js';
|
|
import '../_version.js';
|
|
|
|
export const pluginUtils = {
|
|
filter: (plugins: WorkboxPlugin[], callbackName: string): WorkboxPlugin[] => {
|
|
return plugins.filter((plugin) => callbackName in plugin);
|
|
},
|
|
};
|