mirror of
https://github.com/we-promise/sure.git
synced 2026-08-12 11:10:20 +00:00
fix(pwa): harden service worker render to explicitly use js format (#2629)
Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
parent
7fb6df71f2
commit
7e1713b831
@@ -9,7 +9,7 @@ class PwaController < ApplicationController
|
||||
|
||||
def 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/javascript
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user