From 198590bc94ccd49151af6dcf691fb93de432b0ee Mon Sep 17 00:00:00 2001 From: Luciano Iam Date: Sun, 12 Apr 2020 10:44:14 +0200 Subject: [PATCH] WebSockets: update index page JS to reflect latest two commits changes --- share/web_surfaces/index/main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/web_surfaces/index/main.js b/share/web_surfaces/index/main.js index 805894c00d..2dcb59e654 100644 --- a/share/web_surfaces/index/main.js +++ b/share/web_surfaces/index/main.js @@ -22,17 +22,17 @@ import { Ardour } from '/shared/ardour.js'; async function main () { try { - const index = await new Ardour().getAvailableSurfaces(); - printIndex(index); + const surfaces = await new Ardour().getAvailableSurfaces(); + printSurfaces(surfaces); } catch (err) { - printError(`Error loading index: ${err.message}`); + printError(`Error loading surfaces list: ${err.message}`); } document.getElementById('loading').style.display = 'none'; } - function printIndex (index) { - for (const group of index) { + function printSurfaces (surfaces) { + for (const group of surfaces) { const ul = document.querySelector(`#${group.path} > ul`); const li = document.createElement('li');