Skip to content

Commit dc994c3

Browse files
authored
DEV: Update post-stream detection following core change (#43)
1 parent 6cf4132 commit dc994c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascripts/discourse/initializers/insert-jitsi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function attachButton($elem, user, site) {
5858
}
5959

6060
function attachJitsi($elem, helper) {
61-
if (helper) {
61+
if (helper?.getModel()) {
6262
const { currentUser, site } = helper.widget;
6363

6464
$elem.find("[data-wrap=discourse-jitsi]").each((idx, val) => {

0 commit comments

Comments
 (0)