debian-mirror-gitlab/app/assets/javascripts/pages/projects/compare/show/index.js

9 lines
273 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
import Diff from '~/diff';
import initChangesDropdown from '~/init_changes_dropdown';
export default () => {
new Diff(); // eslint-disable-line no-new
const paddingTop = 16;
initChangesDropdown(document.querySelector('.navbar-gitlab').offsetHeight - paddingTop);
};