[devdocsgjs/main: 744/1867] Remove newline
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 744/1867] Remove newline
- Date: Fri, 19 Nov 2021 23:47:27 +0000 (UTC)
commit eada92ec983604ac9902ab89a07be06e46ece179
Author: Jasper van Merle <jaspervmerle gmail com>
Date: Tue Aug 6 13:00:03 2019 +0200
Remove newline
views/service-worker.js.erb | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/views/service-worker.js.erb b/views/service-worker.js.erb
index 9e32ef89..aa234c19 100644
--- a/views/service-worker.js.erb
+++ b/views/service-worker.js.erb
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]