1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-02 05:21:39 +02:00

Fix uninit var when etherpad is disabled

This commit is contained in:
Daniel Berteaud 2015-08-07 18:26:47 +02:00
parent 660d84247b
commit 050549cb39

View File

@ -544,10 +544,12 @@
$( document ).ready(function() {
etherpad = {
enabled: <%= get_opt_features->{etherpad} ? 'true' : 'false' %>,
% my $ethuri = Mojo::URL->new($config->{'etherpad.uri'});
% if (get_opt_features->{etherpad}){
% my $ethuri = Mojo::URL->new($config->{'etherpad.uri'});
host: "<%= $ethuri->scheme . '://' . $ethuri->authority %>",
path: "<%= $ethuri->path . '/p/' %>",
group: "<%= $etherpadGroup %>"
% }
};
has_video = <%= ($video eq 'false') ? 'false' : 'true' %>;
initJoin(roomName);