connectcore-demo-example: remove multimedia section when viewing from computer
Remove the multimedia section when the demo is being rendered in a computer using the LAN connection. In this scenario, the computer browser will be the one doing all the 3D and video rendering and not the device, so this section has no sense in this case. Signed-off-by: David Escalona <david.escalona@digi.com>
This commit is contained in:
parent
597e940bf1
commit
c0382f19b8
|
|
@ -492,7 +492,10 @@ function getDeviceName() {
|
|||
|
||||
// Updates the available web sections.
|
||||
function updateAvailableSections() {
|
||||
// Send request to retrieve device type.
|
||||
// Remove multimedia section when rendering the demo from a computer.
|
||||
if (!navigator.platform.includes("aarch"))
|
||||
removeSection(ID_SECTION_MULTIMEDIA);
|
||||
// Set visible sections based on device type.
|
||||
$.post(
|
||||
"http://" + getServerAddress() + "/ajax/get_device_type",
|
||||
function(data) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue