()
| 1092 | } |
| 1093 | |
| 1094 | function PageReady() { |
| 1095 | |
| 1096 | var server: Server = new Server("getServerConfig") |
| 1097 | server.request(new Object()) |
| 1098 | |
| 1099 | // Render the menu immediately so UI is usable even before data arrives |
| 1100 | try { createLayout() } catch (e) { console.log("early createLayout error", e) } |
| 1101 | |
| 1102 | // Call updateLog immediately to get initial data and create menu |
| 1103 | setTimeout(() => { |
| 1104 | updateLog() |
| 1105 | }, 500); // Small delay to ensure WebSocket is ready |
| 1106 | |
| 1107 | setInterval(function () { |
| 1108 | updateLog() |
| 1109 | }, 10000); |
| 1110 | |
| 1111 | |
| 1112 | return |
| 1113 | } |
| 1114 | |
| 1115 | function createLayout() { |
| 1116 | console.log("createLayout: Function called"); |
nothing calls this directly
no test coverage detected