diff --git a/js/docsView.js b/js/docsView.js index 70c72e8f..3d23f0c9 100644 --- a/js/docsView.js +++ b/js/docsView.js @@ -308,6 +308,4 @@ async function initDocsView() { } } -initDocsView(); - export { initDocsView }; diff --git a/js/viewManager.js b/js/viewManager.js index 874e7acf..a1e41e4c 100644 --- a/js/viewManager.js +++ b/js/viewManager.js @@ -9,6 +9,7 @@ import { ASSET_VERSION } from "../config/asset-version.js"; import { applyDesignSystemAttributes } from "./designSystem.js"; import { devLogger, userLogger } from "./utils/logger.js"; import { attachFeedInfoPopover } from "./ui/components/FeedInfoPopover.js"; +import { initDocsView } from "./docsView.js"; const TRACKING_SCRIPT_PATTERN = /(?:^|\/)tracking\.js(?:$|\?)/; @@ -147,6 +148,9 @@ export const viewInitRegistry = { refreshApp.forceRefreshAllProfiles(); } }, + docs: async () => { + await initDocsView(); + }, history: async () => { try { const module = await import("./historyView.js"); diff --git a/views/docs.html b/views/docs.html index 3837fa59..c769fbd6 100644 --- a/views/docs.html +++ b/views/docs.html @@ -27,5 +27,3 @@ - -