X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3ed54263155acfd73dbd4cadebd6b221211ce9e3..refs/pull/798/head:/resources/assets/js/components/index.js diff --git a/resources/assets/js/components/index.js b/resources/assets/js/components/index.js index 5340f6ed7..aa69f3265 100644 --- a/resources/assets/js/components/index.js +++ b/resources/assets/js/components/index.js @@ -16,12 +16,13 @@ let componentMapping = { 'editor-toolbox': require('./editor-toolbox'), 'image-picker': require('./image-picker'), 'collapsible': require('./collapsible'), + 'toggle-switch': require('./toggle-switch'), + 'page-display': require('./page-display'), }; window.components = {}; let componentNames = Object.keys(componentMapping); -initAll(); /** * Initialize components of the given name within the given element. @@ -53,4 +54,6 @@ function initAll(parentElement) { } } -window.components.init = initAll; \ No newline at end of file +window.components.init = initAll; + +export default initAll; \ No newline at end of file