summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/init_deprecated_notes.js
blob: 8657a1dcb67e90d9dbe7f640c1fb77e42213cc40 (plain)
1
2
3
4
5
6
7
8
9
10
import Notes from './deprecated_notes';

export default () => {
  const dataEl = document.querySelector('.js-notes-data');
  const { notesUrl, now, diffView, enableGFM } = JSON.parse(dataEl.innerHTML);

  // Create a singleton so that we don't need to assign
  // into the window object, we can just access the current isntance with Notes.instance
  Notes.initialize(notesUrl, now, diffView, enableGFM);
};