]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix af_zz_vidmute for new chrome breaking muting via setAttribute
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 11 Sep 2018 08:46:10 +0000 (11:46 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 11 Sep 2018 08:46:10 +0000 (11:46 +0300)
plugins/af_zz_vidmute/init.js

index 8968792a04613e1535d9257521f261f187fb9969..fab9b99e65432e6fdb88d7f4ee03b93a9aa16a3d 100644 (file)
@@ -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;
                });
        });
-});
\ No newline at end of file
+});