debian-mirror-gitlab/app/assets/javascripts/feature_highlight/feature_highlight_options.js

13 lines
342 B
JavaScript
Raw Normal View History

2020-03-09 13:42:32 +05:30
import { GlBreakpointInstance as bp } from '@gitlab/ui/dist/utils';
2018-03-17 18:26:18 +05:30
import { highlightFeatures } from './feature_highlight';
export default function domContentLoaded() {
2020-03-09 13:42:32 +05:30
if (bp.getBreakpointSize() === 'xl') {
2018-03-17 18:26:18 +05:30
highlightFeatures();
return true;
}
return false;
}
document.addEventListener('DOMContentLoaded', domContentLoaded);