refactor: delete unnecessary function
This commit is contained in:
parent
85e18c86d8
commit
e79f326c53
1 changed files with 1 additions and 5 deletions
|
@ -226,10 +226,6 @@ import Dashboard from '../../utils/dashboard';
|
|||
loadSuggestionsTab(view, tabContent, params.topParentId);
|
||||
}
|
||||
|
||||
function enableScrollXmobile() {
|
||||
return browser.mobile;
|
||||
}
|
||||
|
||||
function setScrollClasses(elem, scrollX) {
|
||||
if (scrollX) {
|
||||
elem.classList.add('hiddenScrollX');
|
||||
|
@ -362,7 +358,7 @@ import Dashboard from '../../utils/dashboard';
|
|||
const containers = tabContent.querySelectorAll('.itemsContainer');
|
||||
|
||||
for (let i = 0, length = containers.length; i < length; i++) {
|
||||
setScrollClasses(containers[i], enableScrollXmobile());
|
||||
setScrollClasses(containers[i], browser.mobile);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue