fix/optimize wtv-news, wtv-proxy, wtv-register, wtv-search, wtv-setup, wtv-star
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
var minisrv_service_file = true;
|
||||
const minisrv_service_file = true;
|
||||
|
||||
// max of 6, any more will be ignored
|
||||
|
||||
@@ -108,8 +108,8 @@ Featured discussions
|
||||
<td>
|
||||
<td WIDTH=198 HEIGHT=200 VALIGN=top ALIGN=left>`;
|
||||
|
||||
var featuredGroups = minisrv_config.services[service_name].featuredGroups;
|
||||
var limit = 6;
|
||||
const featuredGroups = minisrv_config.services[service_name].featuredGroups;
|
||||
const limit = 6;
|
||||
while (featuredGroups.length > limit) featuredGroups.pop(); // remove anything passing our limit
|
||||
|
||||
function printGroup(group) {
|
||||
|
||||
Reference in New Issue
Block a user