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 2021/08/19 14:31:04 UTC

[whimsy] branch master updated: update board/agenda to es2020 for all visitors

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 b30f834  update board/agenda to es2020 for all visitors
b30f834 is described below

commit b30f8348f038e92c5d75d52e5edf8dade1e9a703
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Thu Aug 19 10:29:24 2021 -0400

    update board/agenda to es2020 for all visitors
---
 www/board/agenda/main.rb            | 2 +-
 www/board/agenda/views/main.html.rb | 6 +-----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/www/board/agenda/main.rb b/www/board/agenda/main.rb
index c6f6901..8308690 100755
--- a/www/board/agenda/main.rb
+++ b/www/board/agenda/main.rb
@@ -10,7 +10,7 @@ require 'whimsy/asf/board'
 require 'wunderbar/sinatra'
 require 'wunderbar/vue'
 require 'wunderbar/bootstrap/theme'
-require 'ruby2js/es2017'
+require 'ruby2js/es2020'
 require 'ruby2js/strict'
 require 'ruby2js/filter/functions'
 require 'ruby2js/filter/require'
diff --git a/www/board/agenda/views/main.html.rb b/www/board/agenda/views/main.html.rb
index f2ac92d..ec08e52 100644
--- a/www/board/agenda/views/main.html.rb
+++ b/www/board/agenda/views/main.html.rb
@@ -11,11 +11,7 @@ _html do
 
   _div_.main!
 
-  # force es5 for non-test visitors.  Visitors using browsers that support
-  # ServiceWorkers will receive es2017 versions of the script via
-  # views/bootstrap.html.erb.
-  app = (ENV['RACK_ENV'] == 'test' ? 'app' : 'app-es5')
-  _script src: "../#{app}.js?#{@appmtime}", lang: 'text/javascript'
+  _script src: "../app.js?#{@appmtime}", lang: 'text/javascript'
 
   _.render '#main' do
     _Main server: @server, page: @page