File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 3
3
4
4
< head >
5
5
< meta charset ="utf-8 " />
6
- < link rel =" preload " as =" style " href =' //fonts.googleapis.com/css ?family=Open+Sans ' type =' text/css ' >
6
+ < link href =" https: //fonts.googleapis.com/css2 ?family=Open+Sans&display=swap " rel =" stylesheet " >
7
7
< link href ="https://fonts.googleapis.com/css2?family=Inconsolata&display=swap " rel ="stylesheet ">
8
8
< link
9
9
href ="https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&display=swap "
Original file line number Diff line number Diff line change @@ -164,12 +164,14 @@ export default function App() {
164
164
}
165
165
166
166
useEffect ( ( ) => {
167
+ if ( window . isSecureContext && navigator . serviceWorker ) {
167
168
// check for sw updates on page change
168
169
navigator . serviceWorker . getRegistrations ( ) . then ( ( regs ) => regs . forEach ( ( reg ) => reg . update ( ) ) )
169
170
if ( ! needRefresh ) {
170
171
return
171
172
}
172
173
update ( )
174
+ }
173
175
} , [ location ] )
174
176
175
177
function onUpdate ( ) {
You can’t perform that action at this time.
0 commit comments