Skip to content

Commit 921a61c

Browse files
committed
Fix service workers in production, for real this time
1 parent 3d974a4 commit 921a61c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

assets/javascripts/app/config.coffee.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ app.config =
1414
release: <%= Time.now.utc.httpdate.to_json %>
1515
mathml_stylesheet: '<%= App.cdn_origin %>/mathml.css'
1616
service_worker_path: '/service-worker.js'
17-
service_worker_enabled: '<%= App.environment == 'production' || ENV['ENABLE_SERVICE_WORKER'] == 'true' %>' == 'true'
17+
service_worker_enabled: <%= App.environment == :production || ENV['ENABLE_SERVICE_WORKER'] == 'true' %>

assets/javascripts/news.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
[
2+
[
3+
"2019-07-19",
4+
"Replaced the AppCache with a Service Worker (which makes DevDocs an installable PWA) and fixed layout preferences on Firefox."
5+
],
26
[
37
"2018-09-23",
48
"New documentations: <a href=\"/puppeteer/\">Puppeteer</a> and <a href=\"/handlebars/\">Handlebars.js</a>"

0 commit comments

Comments
 (0)