Remove STATE_ and CMD defines as they are in skin.js.php now. quote connKey so that it retains leading 0s. Should quiet some zms errors.

pull/3477/head
Isaac Connor 2022-04-27 17:45:08 -04:00
parent 2434c39c2d
commit f21df362fa
1 changed files with 5 additions and 3 deletions

View File

@ -16,9 +16,9 @@ var monitorData = new Array();
global $monitors;
foreach ( $monitors as $monitor ) {
?>
monitorData[monitorData.length] = {
'id': <?php echo $monitor->Id() ?>,
'connKey': <?php echo $monitor->connKey() ?>,
monitorData[monitorData.length] = {
'id': <?php echo $monitor->Id() ?>,
'connKey': '<?php echo $monitor->connKey() ?>',
'width': <?php echo $monitor->ViewWidth() ?>,
'height':<?php echo $monitor->ViewHeight() ?>,
'janusEnabled':<?php echo $monitor->JanusEnabled() ?>,
@ -40,4 +40,6 @@ foreach ( $layouts as $layout ) {
layouts[<?php echo $layout->Id() ?>] = {"Name":"<?php echo $layout->Name()?>","Positions":<?php echo json_decode($layout->Positions())?$layout->Positions():'{}' ?>};
<?php
} // end foreach layout
global $FreeFormLayoutId;
echo 'freeform_layout_id='.$FreeFormLayoutId.';'
?>