2017-12-15 05:21:49 -05:00
|
|
|
import Notes from './notes';
|
2017-07-25 11:27:51 -04:00
|
|
|
|
|
|
|
export default () => {
|
|
|
|
const dataEl = document.querySelector('.js-notes-data');
|
2018-10-24 15:17:03 -04:00
|
|
|
const { notesUrl, notesIds, now, diffView, enableGFM } = JSON.parse(dataEl.innerHTML);
|
2017-07-25 11:27:51 -04:00
|
|
|
|
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
|
2018-06-21 07:53:33 -04:00
|
|
|
Notes.initialize(notesUrl, notesIds, now, diffView, enableGFM);
|
2017-07-25 11:27:51 -04:00
|
|
|
};
|