appDisplay: Re-add _getCategories
It was introduced by one of the commits reverted by 812a61939e
,
but is now used for app folders as well; add it back.
This commit is contained in:
parent
620e3cef20
commit
4d3fd7598d
@ -46,6 +46,13 @@ const INDICATORS_ANIMATION_MAX_TIME = 0.75;
|
|||||||
const PAGE_SWITCH_TRESHOLD = 0.2;
|
const PAGE_SWITCH_TRESHOLD = 0.2;
|
||||||
const PAGE_SWITCH_TIME = 0.3;
|
const PAGE_SWITCH_TIME = 0.3;
|
||||||
|
|
||||||
|
function _getCategories(info) {
|
||||||
|
let categoriesStr = info.get_categories();
|
||||||
|
if (!categoriesStr)
|
||||||
|
return [];
|
||||||
|
return categoriesStr.split(';');
|
||||||
|
}
|
||||||
|
|
||||||
function _listsIntersect(a, b) {
|
function _listsIntersect(a, b) {
|
||||||
for (let itemA of a)
|
for (let itemA of a)
|
||||||
if (b.indexOf(itemA) >= 0)
|
if (b.indexOf(itemA) >= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user