Remove newline

This commit is contained in:
Jasper van Merle 2019-08-06 13:00:03 +02:00
parent ad8cd233d7
commit eada92ec98

View file

@ -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;