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/10/14 18:37:13 UTC
[whimsy] branch master updated: oops; handle index page too
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 1e1a517 oops; handle index page too
1e1a517 is described below
commit 1e1a517c6ee231587909ab82dcbeb8bef4e7ff71
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sat Oct 14 14:37:00 2017 -0400
oops; handle index page too
---
www/board/agenda/views/sw.js.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/board/agenda/views/sw.js.rb b/www/board/agenda/views/sw.js.rb
index cc6c8ca..e842314 100644
--- a/www/board/agenda/views/sw.js.rb
+++ b/www/board/agenda/views/sw.js.rb
@@ -27,7 +27,7 @@ self.addEventListener :fetch do |event|
url = event.request.url
url = url.slice(scope.length) if url.start_with? scope
- if url =~ %r{^\d\d\d\d-\d\d-\d\d/[-\w]+$} and event.request.method == 'GET'
+ if url =~ %r{^\d\d\d\d-\d\d-\d\d/[-\w]*$} and event.request.method == 'GET'
return if url.end_with? '/bootstrap.html'
event.respondWith(
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].