migrate snippets:show to static bundle
This commit is contained in:
parent
afbb930804
commit
20d428ea1d
2 changed files with 5 additions and 11 deletions
|
@ -294,11 +294,6 @@ var Dispatcher;
|
|||
.then(callDefault)
|
||||
.catch(fail);
|
||||
break;
|
||||
case 'snippets:show':
|
||||
import('./pages/snippets/show')
|
||||
.then(callDefault)
|
||||
.catch(fail);
|
||||
break;
|
||||
case 'import:fogbugz:new_user_map':
|
||||
import('./pages/import/fogbugz/new_user_map')
|
||||
.then(callDefault)
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
/* eslint-disable no-new */
|
||||
import LineHighlighter from '../../../line_highlighter';
|
||||
import BlobViewer from '../../../blob/viewer';
|
||||
import ZenMode from '../../../zen_mode';
|
||||
import initNotes from '../../../init_notes';
|
||||
|
||||
export default () => {
|
||||
new LineHighlighter();
|
||||
new BlobViewer();
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
new LineHighlighter(); // eslint-disable-line no-new
|
||||
new BlobViewer(); // eslint-disable-line no-new
|
||||
initNotes();
|
||||
new ZenMode();
|
||||
};
|
||||
new ZenMode(); // eslint-disable-line no-new
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue