gitlab-org--gitlab-foss/app/assets/javascripts/init_notes.js

15 lines
298 B
JavaScript
Raw Normal View History

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