Don't run the service worker on /enter (#6353)

This commit is contained in:
rhymes 2020-02-28 18:35:15 +01:00 committed by GitHub
parent c8f5f3e9f6
commit 6795be006d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -5,8 +5,8 @@ class RegistrationsController < Devise::RegistrationsController
def new
if user_signed_in?
redirect_to "/dashboard?signed-in-already&t=#{Time.current.to_i}"
return
else
super
end
super
end
end

View file

@ -110,6 +110,7 @@
!url.href.includes('/sidekiq') && // Skip for Sidekiq dashboard
!url.href.includes('/social_previews') && // Skip for social previews
!url.href.includes('/users/auth') && // Don't run on authentication.
!url.href.includes('/enter') && // Don't run on registration.
caches.match('/shell_top') && // Ensure shell_top is in the cache.
caches.match('/shell_bottom')) { // Ensure shell_bottom is in the cache.