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

17 lines
445 B
JavaScript
Raw Normal View History

2017-12-15 05:21:49 -05:00
import Notes from './notes';
export default () => {
const dataEl = document.querySelector('.js-notes-data');
const {
notesUrl,
notesIds,
now,
diffView,
autocomplete,
} = JSON.parse(dataEl.innerHTML);
2017-12-15 05:21:49 -05:00
// 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, autocomplete);
};