We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Math.ceil/min
1 parent ec84a7a commit 9509960Copy full SHA for 9509960
apps/dtlaunch/app-b2.js
@@ -41,7 +41,7 @@
41
page = (global.dtlaunch&&dtlaunch.handlePagePersist()) ??
42
(parseInt(s.read("dtlaunch.page")) ?? 0);
43
initPageAppZeroth = page*4;
44
- initPageAppLast = (page*4+3<apps.length-1)?page*4+3:apps.length-1;//Math.min(page*4+3, apps.length-1); // FIXME:What is fastest?
+ initPageAppLast = Math.min(page*4+3, apps.length-1);
45
}
46
47
for (let i = initPageAppZeroth; i <= initPageAppLast; i++) { // Initially only load icons for the current page.
@@ -50,7 +50,7 @@
50
51
52
let Napps = apps.length;
53
- let Npages = parseInt(Napps/4+1); //Math.ceil(Napps/4); // FIXME: What is fastest?
+ let Npages = Math.ceil(Napps/4);
54
let maxPage = Npages-1;
55
let selected = -1;
56
//let oldselected = -1;
0 commit comments