File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1414 "start" : " run-p start:css start:js" ,
1515 "prebuild" : " rimraf dist" ,
1616 "build" : " run-s build:css build:js" ,
17- "start:js" : " cross-env ELEVENTY_ENV=development eleventy --serve" ,
18- "build:js" : " cross-env ELEVENTY_ENV=production eleventy" ,
17+ "start:js" : " cross-env ELEVENTY_ENV=development TZ=America/Chicago eleventy --serve" ,
18+ "build:js" : " cross-env ELEVENTY_ENV=production TZ=America/Chicago eleventy" ,
1919 "start:css" : " postcss ./src/css/tailwind.css -o ./src/css/tailwind.include.css -w" ,
2020 "build:css" : " postcss ./src/css/tailwind.css -o ./src/css/tailwind.include.css --env production"
2121 },
Original file line number Diff line number Diff line change 2727 menuToggle . setAttribute ( 'aria-expanded' , newExpandedState . toString ( ) ) ;
2828 } ) ;
2929 } ;
30+
31+ function unregister ( ) {
32+ if ( 'serviceWorker' in navigator ) {
33+ navigator . serviceWorker . ready
34+ . then ( ( registration ) => {
35+ registration . unregister ( ) ;
36+ } )
37+ . catch ( ( error ) => {
38+ console . error ( error . message ) ;
39+ } ) ;
40+ }
41+ }
42+
43+ // unregister any existing service workers
44+ unregister ( ) ;
3045} ) ( ) ;
You can’t perform that action at this time.
0 commit comments