tippy: Directly use `content` property to set content.

This commit is contained in:
Aman Agrawal 2023-01-23 06:11:43 +00:00 committed by Tim Abbott
parent 00752f8059
commit 65f9dbc5f3
1 changed files with 3 additions and 7 deletions

View File

@ -467,13 +467,9 @@ export function initialize() {
delegate("body", {
target: "#show_all_private_messages",
placement: "bottom",
onShow(instance) {
instance.setContent(
$t({
defaultMessage: "All private messages (P)",
}),
);
},
content: $t({
defaultMessage: "All private messages (P)",
}),
appendTo: () => document.body,
});
}