Verified Commit 2429af16 authored by Morgan Bazalgette's avatar Morgan Bazalgette Committed by Haelwenn
Browse files

always make /web/login go through

Original commit: 011eda08
parent bfe8dc3d
......@@ -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')) {
const asyncResponse = fetchRoot();
const asyncCache = openWebCache();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment