[devdocsgjs/main: 651/1867] Update offline page
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 651/1867] Update offline page
- Date: Fri, 19 Nov 2021 23:47:22 +0000 (UTC)
commit 27167a49a6c6183a670026335abb28cff473e37a
Author: Jasper van Merle <jaspervmerle gmail com>
Date: Wed Jul 10 21:15:42 2019 +0200
Update offline page
assets/javascripts/app/config.coffee.erb | 2 +-
assets/javascripts/templates/pages/offline_tmpl.coffee | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/assets/javascripts/app/config.coffee.erb b/assets/javascripts/app/config.coffee.erb
index 9b28b5a5..dc37feab 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"].nil? %>
+ service_worker_enabled: <%= App.environment == 'production' || ENV["ENABLE_SERVICE_WORKER"] == 'true' %>
diff --git a/assets/javascripts/templates/pages/offline_tmpl.coffee
b/assets/javascripts/templates/pages/offline_tmpl.coffee
index 52f64839..e8b262aa 100644
--- a/assets/javascripts/templates/pages/offline_tmpl.coffee
+++ b/assets/javascripts/templates/pages/offline_tmpl.coffee
@@ -47,7 +47,7 @@ canICloseTheTab = ->
reason = "aren't available in your browser (or are disabled)"
if app.config.env != 'production'
- reason = "are disabled in your development instance of DevDocs (enable them by setting the
ENABLE_SERVICE_WORKERS environment variable)"
+ 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>)"
""" No. Service Workers #{reason}, so loading <a href="//devdocs.io">devdocs.io</a> offline won't
work.<br>
The current tab will continue to function even when you go offline (provided you installed all the
documentations beforehand). """
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]