fix sstype=3 + mic mute breaking

This commit is contained in:
steveseguin 2023-04-09 10:44:53 -04:00
parent def151a5af
commit aebb5602e7

2
lib.js
View File

@ -10374,7 +10374,7 @@ function toggleMute(apply = false, event=false) { // TODO: I need to have this b
}
function postMessageIframe(iFrameEle, message){ // iframes seem to only have the contentWindow work on the last placed iframe object, so this checks the dom first.
if (iFrameEle){
if (iFrameEle && (iFrameEle.nodeName == "IFRAME")){
try{
if (iFrameEle.id && document.getElementById(iFrameEle.id)){
document.getElementById(iFrameEle.id).contentWindow.postMessage(message, '*');