Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
mastofe
Commits
faba7113
Verified
Commit
faba7113
authored
Apr 02, 2018
by
Morgan Bazalgette
Committed by
Haelwenn
May 20, 2020
Browse files
always make /web/login go through
Original commit:
011eda08
parent
6599840f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/javascript/mastodon/service_worker/entry.js
View file @
faba7113
...
...
@@ -28,6 +28,10 @@ self.addEventListener('fetch', function(event) {
const
url
=
new
URL
(
event
.
request
.
url
);
if
(
url
.
pathname
.
startsWith
(
'
/web
'
))
{
// we always make /web/login go through
if
(
url
.
pathname
.
startsWith
(
'
/web/login
'
))
{
return
;
}
const
asyncResponse
=
fetchRoot
();
const
asyncCache
=
openWebCache
();
...
...
Write
Preview
Supports
Markdown
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