mirror of https://github.com/vector-im/riot-web
Annotate hacky math
parent
e90e70bd77
commit
1f11298aa3
|
@ -222,6 +222,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
|
||||||
handles = []; // no handles, we're at a minimum
|
handles = []; // no handles, we're at a minimum
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Remove Math hacks
|
||||||
let nVisible = Math.floor(layout.visibleTiles);
|
let nVisible = Math.floor(layout.visibleTiles);
|
||||||
if (localStorage.getItem("mx_rl_mathfn")) {
|
if (localStorage.getItem("mx_rl_mathfn")) {
|
||||||
nVisible = Math[localStorage.getItem("mx_rl_mathfn")](layout.visibleTiles);
|
nVisible = Math[localStorage.getItem("mx_rl_mathfn")](layout.visibleTiles);
|
||||||
|
|
Loading…
Reference in New Issue