File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import {Footer} from './components/Footer/Footer';
1111import { Frame } from './components/Frame/Frame' ;
1212import { FrameHandler } from './components/Frame/FrameHandler' ;
1313import { KeyboardShortcuts } from './components/KeyboardShortcuts/KeyboardShortcuts' ;
14- import ReloadPrompt from './components/PromptUpdate/PromptUpdate' ;
1514import { EditorSidebar } from './components/PropertyEditor/EditorSidebar' ;
1615import { Canvas } from './components/Scaffold/Canvas/Canvas' ;
1716import { Scaffold } from './components/Scaffold/Scaffold' ;
@@ -42,7 +41,6 @@ const App = () => {
4241 return (
4342 < Scaffold >
4443 < SnackbarHost />
45- < ReloadPrompt />
4644
4745 < Show when = { modality === 'full' } >
4846 < Sidebar position = { 'left' } >
Original file line number Diff line number Diff line change 1+ import { clientsClaim } from 'workbox-core' ;
12import { cleanupOutdatedCaches , precacheAndRoute } from 'workbox-precaching' ;
23import { registerRoute } from 'workbox-routing' ;
34import { StaleWhileRevalidate } from 'workbox-strategies' ;
45
56declare let self : ServiceWorkerGlobalScope ;
67
7- self . addEventListener ( 'message' , event => {
8- if ( event . data && event . data . type === 'SKIP_WAITING' ) self . skipWaiting ( ) ;
9- } ) ;
10-
118// self.__WB_MANIFEST is default injection point
129precacheAndRoute ( self . __WB_MANIFEST ) ;
1310// Cache the Google Fonts stylesheets with a stale-while-revalidate strategy.
@@ -24,3 +21,6 @@ registerRoute(
2421 new RegExp ( '/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2)' ) ,
2522 new StaleWhileRevalidate ( ) ,
2623) ;
24+
25+ self . skipWaiting ( ) ;
26+ clientsClaim ( ) ;
You can’t perform that action at this time.
0 commit comments