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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
427 B
JavaScript
Raw Normal View History

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