]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/af_zz_noautoplay/init.js
plugins: run eslint const/let fixes
[tt-rss.git] / plugins / af_zz_noautoplay / init.js
index 45dfc55ab76340ac807f795ae990598d16ea6c8c..28e7ec78715d20f8719157c1bc75f7f13ff7de70 100644 (file)
@@ -5,7 +5,7 @@ require(['dojo/_base/kernel', 'dojo/ready'], function  (dojo, ready) {
                                console.log("af_zz_noautoplay!");
                                console.log(row);
 
-                               var videos = row.getElementsByTagName("video");
+                               const videos = row.getElementsByTagName("video");
                                console.log(row.innerHTML);
 
                                for (i = 0; i < videos.length; i++) {
@@ -23,7 +23,7 @@ require(['dojo/_base/kernel', 'dojo/ready'], function  (dojo, ready) {
 
                PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED, function (row) {
                        if (row) {
-                               var videos = row.getElementsByTagName("video");
+                               const videos = row.getElementsByTagName("video");
 
                                for (i = 0; i < videos.length; i++) {
                                        videos[i].removeAttribute("autoplay");
@@ -38,4 +38,4 @@ require(['dojo/_base/kernel', 'dojo/ready'], function  (dojo, ready) {
                        return true;
                });
        });
-});
\ No newline at end of file
+});