diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-12-07 20:37:33 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-12-07 20:37:33 +0300 |
commit | bd7218f22e11581a45a0703d96d0c7fa139b57c1 (patch) | |
tree | 7e06ea1838c2f32e46b8caee9f9776c74d4bb502 /app/assets/javascripts/sidebar/sidebar_bundle.js | |
parent | 245fad4d8854e74b6f39c763c2f8d047eeb5f4eb (diff) |
Backport epic in issue
Diffstat (limited to 'app/assets/javascripts/sidebar/sidebar_bundle.js')
-rw-r--r-- | app/assets/javascripts/sidebar/sidebar_bundle.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/sidebar/sidebar_bundle.js b/app/assets/javascripts/sidebar/sidebar_bundle.js index f78287e504b..04c39d7b6b5 100644 --- a/app/assets/javascripts/sidebar/sidebar_bundle.js +++ b/app/assets/javascripts/sidebar/sidebar_bundle.js @@ -1,9 +1,8 @@ import Mediator from './sidebar_mediator'; -import mountSidebar from './mount_sidebar'; +import { mountSidebar, getSidebarOptions } from './mount_sidebar'; function domContentLoaded() { - const sidebarOptions = JSON.parse(document.querySelector('.js-sidebar-options').innerHTML); - const mediator = new Mediator(sidebarOptions); + const mediator = new Mediator(getSidebarOptions()); mediator.fetch(); mountSidebar(mediator); |