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
14 release: <%= Time.now.utc.httpdate.to_json %>14 release: <%= Time.now.utc.httpdate.to_json %>
15 mathml_stylesheet: '<%= App.cdn_origin %>/mathml.css'15 mathml_stylesheet: '<%= App.cdn_origin %>/mathml.css'
16 service_worker_path: '/service-worker.js'16 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
47 reason = "aren't available in your browser (or are disabled)"47 reason = "aren't available in your browser (or are disabled)"
48 48
49 if app.config.env != 'production'49 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>)"
51 51
52 """ No. Service Workers #{reason}, so loading <a href="//devdocs.io">devdocs.io</a> offline won't work.<br>52 """ No. Service Workers #{reason}, so loading <a href="//devdocs.io">devdocs.io</a> offline won't work.<br>
53 The current tab will continue to function even when you go offline (provided you installed all the documentations beforehand). """53 The current tab will continue to function even when you go offline (provided you installed all the documentations beforehand). """