Browse Source

fix af_zz_vidmute for new chrome breaking muting via setAttribute

Andrew Dolgov 11 months ago
parent
commit
1cf69d435d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      plugins/af_zz_vidmute/init.js

+ 3 - 3
plugins/af_zz_vidmute/init.js

@@ -4,7 +4,7 @@ require(['dojo/_base/kernel', 'dojo/ready'], function  (dojo, ready) {
 			if (row) {
 
 				row.select("video").each(function (v) {
-					v.setAttribute("muted", true);
+					v.muted = true;
 				});
 			}
 
@@ -15,11 +15,11 @@ require(['dojo/_base/kernel', 'dojo/ready'], function  (dojo, ready) {
 			if (row) {
 
 				row.select("video").each(function (v) {
-					v.setAttribute("muted", true);
+					v.muted = true;
 				});
 			}
 
 			return true;
 		});
 	});
-});
+});