@@ -386,7 +386,7 @@
var roomName = '<%= $room %>';
$( document ).ready(function() {
etherpad = {
- enabled: <%= $etherpad %>,
+ enabled: <%= $self->get_opt_features->{etherpad} ? 'true' : 'false' %>,
<%
my $ethuri = Mojo::URL->new($config->{'etherpad.uri'});
%>
diff --git a/vroom.pl b/vroom.pl
index c7c0b28..91ffe94 100755
--- a/vroom.pl
+++ b/vroom.pl
@@ -1492,8 +1492,7 @@ get '/' => sub {
my $self = shift;
$self->login;
$self->stash(
- page => 'index',
- etherpad => ($optf->{etherpad}) ? 'true' : 'false'
+ page => 'index'
);
} => 'index';
@@ -2400,7 +2399,6 @@ get '/:room' => sub {
page => 'room',
moh => $self->choose_moh(),
video => $video,
- etherpad => ($optf->{etherpad}) ? 'true' : 'false',
etherpadGroup => $data->{etherpad_group},
ua => $self->req->headers->user_agent
);