mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Remove newline
This commit is contained in:
parent
ad8cd233d7
commit
eada92ec98
1 changed files with 0 additions and 1 deletions
|
@ -50,7 +50,6 @@ self.addEventListener('fetch', event => {
|
|||
<%# The index page will make sure the correct documentation or a proper offline page is shown %>
|
||||
const pathname = url.pathname;
|
||||
const filename = pathname.substr(1 + pathname.lastIndexOf('/')).split(/\#|\?/g)[0];
|
||||
|
||||
if (url.origin === location.origin && !filename.includes('.')) {
|
||||
const cachedIndex = await caches.match('/');
|
||||
if (cachedIndex) return cachedIndex;
|
||||
|
|
Loading…
Reference in a new issue