Explorar el Código

#3090 Iframely not loading previews on dynamically generated content

Alex Trofimov hace 5 años
padre
commit
ff1eeb79cb
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      inc/js/functions.js

+ 2 - 1
inc/js/functions.js

@@ -817,7 +817,8 @@ function bx_time(sLang, isAutoupdate, sRootSel) {
                 Prism.highlightAllUnder(eElement[0]);
 
             // process embeds
-            bx_embed_dom_changed(this);
+            if ('undefined' !== typeof(bx_embed_dom_changed))
+                bx_embed_dom_changed(this);
         }
         if ('undefined' !== typeof(oCallback)) {
             oCallback(eElement);