File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -470,6 +470,10 @@ if (location.host.indexOf('localhost') != -1) {
470470 document . title += ' - localhost version' ;
471471 $ ( 'main .heading' ) . textContent += ' - localhost version' ;
472472}
473+ else if ( location . host . indexOf ( '.github.dev' ) != - 1 ) {
474+ document . title += ' - codespace version' ;
475+ $ ( 'main .heading' ) . textContent += ' - codespace version' ;
476+ }
473477else if ( location . protocol . indexOf ( 'file' ) != - 1 ) {
474478 document . title += ' - file:// version' ;
475479 $ ( 'main .heading' ) . textContent += ' - file:// version (some features unavailable)' ;
Original file line number Diff line number Diff line change 11const CACHE_NAME = "langton-music-v2" ;
22
3- if ( location . protocol . indexOf ( 'file' ) === - 1 && location . host . indexOf ( 'localhost' ) === - 1 ) {
3+ if ( location . protocol . indexOf ( 'file' ) === - 1 && location . host . indexOf ( 'localhost' ) === - 1 && location . host . indexOf ( '.github.dev' ) === - 1 ) {
44
55 // Copied from https://developer.chrome.com/docs/workbox/caching-strategies-overview/#stale-while-revalidate
66 self . addEventListener ( 'fetch' , e => {
You can’t perform that action at this time.
0 commit comments