The personal finance app for everyone (by everyone)
Ruby
fix(pwa): harden service worker render to explicitly use js format (#2629)
sentry[bot]7e1713b83115
diff --git a/app/controllers/pwa_controller.rb b/app/controllers/pwa_controller.rbindex 2ea181b33f..46c949e121 100644--- a/app/controllers/pwa_controller.rb+++ b/app/controllers/pwa_controller.rb@@ -9,7 +9,7 @@ class PwaController < ApplicationControllerdef service_worker# Explicitly render JS template to avoid format negotiation issues- render "pwa/service-worker", content_type: "application/javascript"+ render "pwa/service-worker", formats: [ :js ], content_type: "application/javascript"end# Renders app/views/pwa/service-worker.js with content type application/javascriptend