[devdocsgjs/main: 670/1867] Fix service workers in production, for real this time




commit 921a61cd1f6d7cc2765ce1be0ee5b3d6c3fc82d0
Author: Jasper van Merle <jaspervmerle gmail com>
Date:   Fri Jul 19 23:57:21 2019 +0200

    Fix service workers in production, for real this time

 assets/javascripts/app/config.coffee.erb | 2 +-
 assets/javascripts/news.json             | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/assets/javascripts/app/config.coffee.erb b/assets/javascripts/app/config.coffee.erb
index 7cce8e92..dba368e0 100644
--- a/assets/javascripts/app/config.coffee.erb
+++ b/assets/javascripts/app/config.coffee.erb
@@ -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' %>' 
== 'true'
+  service_worker_enabled: <%= App.environment == :production || ENV['ENABLE_SERVICE_WORKER'] == 'true' %>
diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json
index 32da738e..a2d18a47 100644
--- a/assets/javascripts/news.json
+++ b/assets/javascripts/news.json
@@ -1,4 +1,8 @@
 [
+  [
+    "2019-07-19",
+    "Replaced the AppCache with a Service Worker (which makes DevDocs an installable PWA) and fixed layout 
preferences on Firefox."
+  ],
   [
     "2018-09-23",
     "New documentations: <a href=\"/puppeteer/\">Puppeteer</a> and <a 
href=\"/handlebars/\">Handlebars.js</a>"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]