export const install = function ( ) { return new Promise ( resolve => { await navigator . serviceWorker . register ( ) ; resolve ( ) ; } ) ; } ; export const update = function ( ) { return new Promise ( resolve => { OfflinePluginRuntime . update ( ) ; resolve ( ) ; } ) ; } ;