Don't run the service worker on /enter (#6353)
This commit is contained in:
parent
c8f5f3e9f6
commit
6795be006d
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue