15 lines
298 B
JavaScript
15 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);
|
||
|
};
|