18 lines
583 B
JavaScript
18 lines
583 B
JavaScript
import LineHighlighter from '~/line_highlighter';
|
|
import BlobViewer from '~/blob/viewer';
|
|
import ZenMode from '~/zen_mode';
|
|
import initNotes from '~/init_notes';
|
|
import snippetEmbed from '~/snippet/snippet_embed';
|
|
import initSnippetsApp from '~/snippets';
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
if (!gon.features.snippetsVue) {
|
|
new LineHighlighter(); // eslint-disable-line no-new
|
|
new BlobViewer(); // eslint-disable-line no-new
|
|
initNotes();
|
|
new ZenMode(); // eslint-disable-line no-new
|
|
snippetEmbed();
|
|
} else {
|
|
initSnippetsApp();
|
|
}
|
|
});
|