From 2a5fbb390448e5e8c26a654b4433b54b72951b0a Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Tue, 27 Jan 2026 08:36:12 -0500 Subject: [PATCH] Register docs view initializer --- js/docsView.js | 2 -- js/viewManager.js | 4 ++++ views/docs.html | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) 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 @@ - -