2018-03-17 18:26:18 +05:30
|
|
|
import Notes from './notes';
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
export default () => {
|
|
|
|
const dataEl = document.querySelector('.js-notes-data');
|
|
|
|
const {
|
|
|
|
notesUrl,
|
|
|
|
notesIds,
|
|
|
|
now,
|
|
|
|
diffView,
|
2018-11-08 19:23:39 +05:30
|
|
|
enableGFM,
|
2017-09-10 17:25:29 +05:30
|
|
|
} = JSON.parse(dataEl.innerHTML);
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
// 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
|
2018-11-08 19:23:39 +05:30
|
|
|
Notes.initialize(notesUrl, notesIds, now, diffView, enableGFM);
|
2017-09-10 17:25:29 +05:30
|
|
|
};
|