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.

giphy: Add just space as a content to fool popover library.

Aman Agrawalc285e3f25e79
diff --git a/static/js/giphy.js b/static/js/giphy.js
index 59a58c74205..d9963d7cae3 100644
--- a/static/js/giphy.js
+++ b/static/js/giphy.js
@@ -234,6 +234,10 @@ export function initialize() {
html: true,
trigger: "manual",
template: get_popover_content(),
+ /* Popovers without a content property are not displayed,
+ * so we need something here; but we haven't contacted the
+ * Giphy API yet to get the actual content to display. */
+ content: " ",
});
active_popover_element.popover("show");