gitlab-org--gitlab-foss/app/assets/javascripts/init_notes.js
Phil Hughes fe27de8bf1 moved some code into new files
fixed duplication of code
2017-07-25 16:27:51 +01:00

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