From: Andrew Dolgov Date: Tue, 11 Sep 2018 08:46:10 +0000 (+0300) Subject: fix af_zz_vidmute for new chrome breaking muting via setAttribute X-Git-Tag: 18.12~69 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1cf69d435d7b31c803d956692020c3d5f74df90d;p=tt-rss.git fix af_zz_vidmute for new chrome breaking muting via setAttribute --- diff --git a/plugins/af_zz_vidmute/init.js b/plugins/af_zz_vidmute/init.js index 8968792a..fab9b99e 100644 --- a/plugins/af_zz_vidmute/init.js +++ b/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; }); }); -}); \ No newline at end of file +});