debian-mirror-gitlab/app/assets/javascripts/init_notes.js
2017-09-10 17:25:29 +05:30

14 lines
298 B
JavaScript

/* 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);
};