diff --git a/extensions/embed/js/forum/src/components/DiscussionPage.js b/extensions/embed/js/forum/src/components/DiscussionPage.js index 9524b3437..8e436f054 100644 --- a/extensions/embed/js/forum/src/components/DiscussionPage.js +++ b/extensions/embed/js/forum/src/components/DiscussionPage.js @@ -29,7 +29,7 @@ export default class DiscussionPage extends BaseDiscussionPage { sidebarItems() { const items = super.sidebarItems(); - delete items.scrubber; + items.remove('scrubber'); return items; } diff --git a/extensions/embed/js/forum/src/main.js b/extensions/embed/js/forum/src/main.js index bf7529f0d..53d1d7948 100644 --- a/extensions/embed/js/forum/src/main.js +++ b/extensions/embed/js/forum/src/main.js @@ -10,7 +10,7 @@ import Drawer from 'flarum/utils/Drawer'; import DiscussionPage from 'flarum/embed/components/DiscussionPage'; -app.initializers.boot.content = app => { +app.initializers.replace('boot', () => { m.route.mode = 'pathname'; override(m, 'route', function(original, root, arg1, arg2, vdom) { @@ -56,4 +56,4 @@ app.initializers.boot.content = app => { basePath + '/', mapRoutes(app.routes, basePath) ); -}; +});