From 150e31bbf0eed1f04383d45ce84f22092b00d9fa Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Fri, 10 Jan 2020 13:41:10 -0500 Subject: [PATCH] Add oauth to list of skipped paths for service workers (#5441) * Add oauth to list of skipped paths for service workers * Fix comment --- app/views/service_worker/index.js.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/service_worker/index.js.erb b/app/views/service_worker/index.js.erb index 9187d67d3..12f02b325 100644 --- a/app/views/service_worker/index.js.erb +++ b/app/views/service_worker/index.js.erb @@ -103,6 +103,7 @@ !url.href.includes('?preview=') && // Skip for /future. !url.href.includes('/delayed_job') && // Skip for Delayed Job dashboard !url.href.includes('/sidekiq') && // Skip for Sidekiq dashboard + !url.href.includes('/oauth/') && // Skip oauth apps !url.href.includes('/rails/mailers') && // Skip for mailers previews in development mode caches.match('/shell_top') && // Ensure shell_top is in the cache. caches.match('/shell_bottom')) { // Ensure shell_bottom is in the cache.