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/13 23:05:37 UTC

[whimsy] 01/02: fix regression -- no 'document' on the server

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

commit 506a9df163f212551b91bc6d3c6935a1f8ae2b4d
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Oct 13 19:04:42 2017 -0400

    fix regression -- no 'document' on the server
---
 www/board/agenda/views/layout/main.js.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/views/layout/main.js.rb b/www/board/agenda/views/layout/main.js.rb
index 0f85cba..dfc5160 100644
--- a/www/board/agenda/views/layout/main.js.rb
+++ b/www/board/agenda/views/layout/main.js.rb
@@ -64,7 +64,9 @@ class Main < Vue
     Main.item = route.item
 
     # update title to match the item title whenever page changes
-    document.getElementsByTagName('title')[0].textContent = route.item.title
+    if defined? document
+      document.getElementsByTagName('title')[0].textContent = route.item.title
+    end
   end
 
   # navigation method that updates history (back button) information

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