allow client to be determined by server

This commit is contained in:
Joshua Arts
2018-06-27 17:53:11 -04:00
parent 3748bb2140
commit f0ab2924db
3 changed files with 1 additions and 11 deletions

View File

@ -1,8 +0,0 @@
# frozen_string_literal: true
# Send a request to check if the HTML5 client is enabled on the BigBlueButton server.
uri = URI.parse(Rails.configuration.bigbluebutton_endpoint.gsub('bigbluebutton/api', 'html5client/check'))
res = Net::HTTP.get_response(uri)
# Set the HTML5 status.
Rails.application.config.html5_enabled = (res.code.to_i == 200)