History

Update offline page

Jasper van Merle committed 7 years ago

Commit 27167a41 parent b8a5c6b2 files · +2 −2Browse files

Unified · Split

2 files
  1. assets/javascripts/app/config.coffee.erb +1 −1
  2. assets/javascripts/templates/pages/offline_tmpl.coffee +1 −1
assets/javascripts/app/config.coffee.erb+1−1
@@ -14,4 +14,4 @@ app.config = · 13 unmodified lines
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"].nil? %>
17+ service_worker_enabled: <%= App.environment == 'production' || ENV["ENABLE_SERVICE_WORKER"] == 'true' %>
assets/javascripts/templates/pages/offline_tmpl.coffee+1−1
@@ -47,7 +47,7 @@ canICloseTheTab = -> · 46 unmodified lines
4747 reason = "aren't available in your browser (or are disabled)"
4848
4949 if app.config.env != 'production'
50− reason = "are disabled in your development instance of DevDocs (enable them by setting the ENABLE_SERVICE_WORKERS environment variable)"
50+ reason = "are disabled in your development instance of DevDocs (enable them by setting the <code>ENABLE_SERVICE_WORKERS</code> environment variable to <code>true</code>)"
5151
5252 """ No. Service Workers #{reason}, so loading <a href="//devdocs.io">devdocs.io</a> offline won't work.<br>
5353 The current tab will continue to function even when you go offline (provided you installed all the documentations beforehand). """