diff options
author | Luciano Iam <lucianito@gmail.com> | 2020-04-12 10:44:14 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-13 16:29:38 +0200 |
commit | 198590bc94ccd49151af6dcf691fb93de432b0ee (patch) | |
tree | 45f80f0c8fddbd0dddcb7aadf4d963ec7281eea7 /share | |
parent | 30c8563a6d867b47e6d7d2cc277e40b405c5dd8c (diff) |
WebSockets: update index page JS to reflect latest two commits changes
Diffstat (limited to 'share')
-rw-r--r-- | share/web_surfaces/index/main.js | 10 |
1 files 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'); |