summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/feature_highlight/feature_highlight_options.js
blob: 212643b1e04990728a8b696b20dc5b9e99087689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { highlightFeatures } from './feature_highlight';
import bp from '../breakpoints';

export default function domContentLoaded() {
  if (bp.getBreakpointSize() === 'lg') {
    highlightFeatures();
    return true;
  }
  return false;
}

document.addEventListener('DOMContentLoaded', domContentLoaded);