Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integration-docs: Enable tab switching and copying code blocks.

Niloth P5a1225fdfa41
diff --git a/web/src/portico/help.ts b/web/src/portico/help.ts
index 575a06060f6..cff95f4556c 100644
--- a/web/src/portico/help.ts
+++ b/web/src/portico/help.ts
@@ -79,7 +79,9 @@ function render_tabbed_sections(): void {
});
}
-new SimpleBar(util.the($(".sidebar")), {tabIndex: -1});
+if ($(".sidebar").length > 0) {
+ new SimpleBar(util.the($(".sidebar")), {tabIndex: -1});
+}
// Scroll to anchor link when clicked. Note that landing-page.js has a
// similar function; this file and landing-page.js are never included
diff --git a/web/webpack.assets.json b/web/webpack.assets.json
index 4a2896c3da2..f14797e811c 100644
--- a/web/webpack.assets.json
+++ b/web/webpack.assets.json
@@ -87,7 +87,8 @@
"./src/bundles/portico.ts",
"./src/portico/integrations.ts",
"./styles/portico/landing_page.css",
- "./styles/portico/integrations.css"
+ "./styles/portico/integrations.css",
+ "./src/portico/help.ts"
],
"communities": [
"./src/bundles/portico.ts",