Welcome to mirror list, hosted at ThFree Co, Russian Federation.

init_notes.js « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a77828e8cf20a2d1d59a45e96f424e76a9c32f29 (plain)
1
2
3
4
5
6
7
8
9
10
import Notes from './notes';

export default () => {
  const dataEl = document.querySelector('.js-notes-data');
  const { notesUrl, notesIds, 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, notesIds, now, diffView, enableGFM);
};