You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/12/03 17:58:26 UTC
[whimsy] branch master updated: tighten check for serviceWorkers
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 5ce917a tighten check for serviceWorkers
5ce917a is described below
commit 5ce917ad82406bc42e5544cee83393049e6096e3
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sun Dec 3 12:57:15 2017 -0500
tighten check for serviceWorkers
Apparently Serviceworkers may be defined but not navigator.serviceWorkers;
for example when in 'incognito' or 'private' mode.
---
www/board/agenda/views/models/pagecache.js.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/board/agenda/views/models/pagecache.js.rb b/www/board/agenda/views/models/pagecache.js.rb
index f223fbe..0ee6c0d 100644
--- a/www/board/agenda/views/models/pagecache.js.rb
+++ b/www/board/agenda/views/models/pagecache.js.rb
@@ -34,7 +34,7 @@ class PageCache
# end
# end
- return true
+ return defined? navigator.serviceWorker
end
# registration and related startup actions
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].