From bcfef10df4919d0104f16e87920c1074cd69b007 Mon Sep 17 00:00:00 2001 From: Taly Date: Tue, 5 Jul 2022 18:01:59 +0300 Subject: [PATCH] not module --- src/frontend/js/{modules => classes}/table-of-content.js | 0 src/frontend/js/modules/page.js | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/frontend/js/{modules => classes}/table-of-content.js (100%) diff --git a/src/frontend/js/modules/table-of-content.js b/src/frontend/js/classes/table-of-content.js similarity index 100% rename from src/frontend/js/modules/table-of-content.js rename to src/frontend/js/classes/table-of-content.js diff --git a/src/frontend/js/modules/page.js b/src/frontend/js/modules/page.js index 78882a8..5a33c60 100644 --- a/src/frontend/js/modules/page.js +++ b/src/frontend/js/modules/page.js @@ -41,12 +41,12 @@ export default class Page { * @return {Promise} */ async createTableOfContent() { - const { default: TableOfContent } = await import(/* webpackChunkName: "table-of-content" */ './table-of-content'); + const { default: TableOfContent } = await import(/* webpackChunkName: "table-of-content" */ '../classes/table-of-content'); return new TableOfContent({ tagSelector: 'h2.block-header--anchor,' + - 'h3.block-header--anchor,' + + 'h3.block-header--anchor,' + 'h4.block-header--anchor', tocWrapperSelector: '#layout-sidebar-right', });