Changed function setup
This commit is contained in:
parent
8edfbe3d8d
commit
e51a0df391
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ const frequentItemDropdowns = [
|
|||
},
|
||||
];
|
||||
|
||||
function initFrequentItemDropdowns() {
|
||||
const initFrequentItemDropdowns = () => {
|
||||
frequentItemDropdowns.forEach(dropdown => {
|
||||
const { namespace, key } = dropdown;
|
||||
const el = document.getElementById(`js-${namespace}-dropdown`);
|
||||
|
@ -66,7 +66,7 @@ function initFrequentItemDropdowns() {
|
|||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
requestIdleCallback(initFrequentItemDropdowns);
|
||||
|
|
Loading…
Reference in a new issue