Only load janus.js if we are using it

This commit is contained in:
Isaac Connor 2022-02-08 11:03:25 -05:00
parent a7dc9d4e36
commit 03f6637060
1 changed files with 6 additions and 0 deletions

View File

@ -397,6 +397,12 @@ if ( ZM_WEB_SOUND_ON_ALARM ) {
</div>
</div>
<script src="<?php echo cache_bust('js/adapter.min.js') ?>"></script>
<?php
if ( $monitor->JanusEnabled() ) {
?>
<script src="/javascript/janus/janus.js"></script>
<?php
}
?>
<script src="<?php echo cache_bust('js/MonitorStream.js') ?>"></script>
<?php xhtmlFooter() ?>