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: 3a8b4360cb6ba4abf020336d7e1cfd8d48c6aa4b (plain)
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);
};