whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: Revert "take off the training-wheels"
Date Mon, 13 Nov 2017 16:46:20 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 58cb164  Revert "take off the training-wheels"
58cb164 is described below

commit 58cb1644bc96d88ae55caf40a4347d6283f4af8e
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Mon Nov 13 11:45:13 2017 -0500

    Revert "take off the training-wheels"
    
    Need to resolve how userid, initials, and firstname is determined
    
    This reverts commit 6910c9580b1c79e56bc6a362364dd57d07c5637b.
---
 www/board/agenda/views/models/pagecache.js.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/www/board/agenda/views/models/pagecache.js.rb b/www/board/agenda/views/models/pagecache.js.rb
index 0fa291d..d81dd30 100644
--- a/www/board/agenda/views/models/pagecache.js.rb
+++ b/www/board/agenda/views/models/pagecache.js.rb
@@ -15,6 +15,12 @@ class PageCache
       return false
     end
 
+    # disable service workers for the production server(s) for now.  See:
+    # https://lists.w3.org/Archives/Public/public-webapps/2016JulSep/0016.html
+    if location.hostname =~ /^whimsy.*\.apache\.org$/
+      return false unless location.hostname.include? '-test'
+    end
+
     defined?(ServiceWorker) and defined?(navigator)
   end
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message