Commit 651810f5 authored by Jannik Lehmann's avatar Jannik Lehmann

Remove obsolete DOMContentLoadedEventListener

parent e5df1467
...@@ -15,9 +15,7 @@ function initUserProfile(action) { ...@@ -15,9 +15,7 @@ function initUserProfile(action) {
}); });
} }
document.addEventListener('DOMContentLoaded', () => { const page = $('body').attr('data-page');
const page = $('body').attr('data-page'); const action = page.split(':')[1];
const action = page.split(':')[1]; initUserProfile(action);
initUserProfile(action); new UserCallout(); // eslint-disable-line no-new
new UserCallout(); // eslint-disable-line no-new
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment