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.

tippyjs: Combine "delegate" functions with same functionality.

sbansal1999be9fbff5cd9f
diff --git a/web/src/tippyjs.js b/web/src/tippyjs.js
index cbf4a1ef46b..f582d540ed2 100644
--- a/web/src/tippyjs.js
+++ b/web/src/tippyjs.js
@@ -253,6 +253,7 @@ export function initialize() {
"#scroll-to-bottom-button-clickable-area",
".code_external_link",
".spectator_narrow_login_button",
+ "#stream-specific-notify-table .unmute_stream",
],
appendTo: () => document.body,
});
@@ -266,11 +267,6 @@ export function initialize() {
},
});
- delegate("body", {
- target: "#stream-specific-notify-table .unmute_stream",
- appendTo: () => document.body,
- });
-
delegate("body", {
target: [
".rendered_markdown .copy_codeblock",