debian-mirror-gitlab/app/assets/javascripts/feature_highlight/feature_highlight_options.js
2020-03-09 13:42:32 +05:30

12 lines
342 B
JavaScript

import { GlBreakpointInstance as bp } from '@gitlab/ui/dist/utils';
import { highlightFeatures } from './feature_highlight';
export default function domContentLoaded() {
if (bp.getBreakpointSize() === 'xl') {
highlightFeatures();
return true;
}
return false;
}
document.addEventListener('DOMContentLoaded', domContentLoaded);