提交 e51a0df3 编写于 作者: T Tim Zallmann

Changed function setup

上级 8edfbe3d
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册