Refactor var to let/const or this

This commit is contained in:
Vasiliy Halimonchuk
2019-05-30 09:05:16 +03:00
parent b530e19a44
commit fe0fb3a251
32 changed files with 880 additions and 882 deletions

View File

@@ -140,9 +140,9 @@
<script>
'use strict';
var encodedUrls = new URI().getData('urls');
const encodedUrls = new URI().getData('urls');
if (encodedUrls) {
var urls = [];
const urls = [];
encodedUrls.split('|').each(function(url) {
urls.push(decodeURIComponent(url));
});
@@ -151,7 +151,7 @@
$('urls').set('value', urls.join("\n"));
}
var submitted = false;
let submitted = false;
$('downloadForm').addEventListener("submit", function() {
$('startTorrentHidden').value = $('startTorrent').checked ? 'false' : 'true';