Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cribjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
cribjs
Commits
2f05ef8f
Commit
2f05ef8f
authored
Jun 25, 2020
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Service Worker Treat ending / as index.html
parent
c7ead705
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
gadget_cribjs_bootloader_serviceworker.js
gadget_cribjs_bootloader_serviceworker.js
+3
-0
No files found.
gadget_cribjs_bootloader_serviceworker.js
View file @
2f05ef8f
...
@@ -53,6 +53,9 @@ var global = self, window = self;
...
@@ -53,6 +53,9 @@ var global = self, window = self;
var
relative_url
=
event
.
request
.
url
.
split
(
"
#
"
)[
0
]
var
relative_url
=
event
.
request
.
url
.
split
(
"
#
"
)[
0
]
.
replace
(
self
.
registration
.
scope
,
""
)
.
replace
(
self
.
registration
.
scope
,
""
)
.
replace
(
self
.
version_url
,
""
);
.
replace
(
self
.
version_url
,
""
);
if
(
relative_url
[
relative_url
.
length
-
1
]
===
"
/
"
||
relative_url
===
""
)
{
relative_url
=
relative_url
+
"
index.html
"
;
}
if
(
relative_url
===
'
./no-cache
'
)
{
if
(
relative_url
===
'
./no-cache
'
)
{
event
.
respondWith
(
new
Response
(
self
.
cache_list
));
event
.
respondWith
(
new
Response
(
self
.
cache_list
));
return
;
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment