BigW Consortium Gitlab

init_notes.js 298 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* global Notes */

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

  window.notes = new Notes(notesUrl, notesIds, now, diffView, autocomplete);
};