History

Remove newline

Jasper van Merle committed 7 years ago

Commit eada92e1 parent ad8cd231 file · +0 −1Browse files

Unified · Split

views/service-worker.js.erb+0−1
@@ -50,7 +50,6 @@ self.addEventListener('fetch', event => { · 49 unmodified lines
50 <%# The index page will make sure the correct documentation or a proper offline page is shown %>50 <%# The index page will make sure the correct documentation or a proper offline page is shown %>
51 const pathname = url.pathname;51 const pathname = url.pathname;
52 const filename = pathname.substr(1 + pathname.lastIndexOf('/')).split(/\#|\?/g)[0];52 const filename = pathname.substr(1 + pathname.lastIndexOf('/')).split(/\#|\?/g)[0];
53
54 if (url.origin === location.origin && !filename.includes('.')) {53 if (url.origin === location.origin && !filename.includes('.')) {
55 const cachedIndex = await caches.match('/');54 const cachedIndex = await caches.match('/');
56 if (cachedIndex) return cachedIndex;55 if (cachedIndex) return cachedIndex;