gitlab-org--gitlab-foss/app/assets/javascripts/feature_highlight/feature_highlight_options.js

13 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);