1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

run eslint to fix most var instances

This commit is contained in:
dkanada 2020-10-07 21:12:14 +09:00
parent 24699c0aca
commit 39eddeb205
55 changed files with 614 additions and 614 deletions

View file

@ -1,10 +1,10 @@
import browser from 'browser';
function fallback(urls) {
var i = 0;
let i = 0;
(function createIframe() {
var frame = document.createElement('iframe');
const frame = document.createElement('iframe');
frame.style.display = 'none';
frame.src = urls[i++];
document.documentElement.appendChild(frame);
@ -28,14 +28,14 @@ function fallback(urls) {
}
function sameDomain(url) {
var a = document.createElement('a');
const a = document.createElement('a');
a.href = url;
return window.location.hostname === a.hostname && window.location.protocol === a.protocol;
}
function download(url) {
var a = document.createElement('a');
const a = document.createElement('a');
a.download = '';
a.href = url;
// firefox doesn't support `a.click()`...
@ -51,7 +51,7 @@ export default function (urls) {
return fallback(urls);
}
var delay = 0;
let delay = 0;
urls.forEach(function (url) {
// the download init has to be sequential for firefox if the urls are not on the same domain