Fix service workers in production

pull/1028/head
Jasper van Merle 6 years ago
parent 6138f05bd7
commit 3d974a42fa

@ -14,4 +14,4 @@ app.config =
release: <%= Time.now.utc.httpdate.to_json %>
mathml_stylesheet: '<%= App.cdn_origin %>/mathml.css'
service_worker_path: '/service-worker.js'
service_worker_enabled: <%= App.environment == 'production' || ENV['ENABLE_SERVICE_WORKER'] == 'true' %>
service_worker_enabled: '<%= App.environment == 'production' || ENV['ENABLE_SERVICE_WORKER'] == 'true' %>' == 'true'

Loading…
Cancel
Save