tippyjs: Combine "delegate" functions with same functionality.

This commits combines two different "delegate" functions that
provide identical functionality by combining values of the
"target" array in the function.
This commit is contained in:
sbansal1999 2023-03-31 23:12:26 +05:30 committed by Tim Abbott
parent 2b358dc980
commit be9fbff5cd
1 changed files with 1 additions and 5 deletions

View File

@ -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",