mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update to 3.5.2 and .net core 2.1
This commit is contained in:
parent
15f48949eb
commit
1c06eed098
665 changed files with 13778 additions and 11582 deletions
|
@ -1 +1 @@
|
|||
define(["browser"],function(browser){"use strict";function fallback(urls){var i=0;!function createIframe(){var frame=document.createElement("iframe");frame.style.display="none",frame.src=urls[i++],document.documentElement.appendChild(frame);var interval=setInterval(function(){"complete"!==frame.contentWindow.document.readyState&&"interactive"!==frame.contentWindow.document.readyState||(clearInterval(interval),setTimeout(function(){frame.parentNode.removeChild(frame)},1e3),i<urls.length&&createIframe())},100)}()}function sameDomain(url){var a=document.createElement("a");return a.href=url,location.hostname===a.hostname&&location.protocol===a.protocol}function download(url){var a=document.createElement("a");a.download="",a.href=url,a.dispatchEvent(new MouseEvent("click"))}return function(urls){if(!urls)throw new Error("`urls` required");if("undefined"==typeof document.createElement("a").download)return fallback(urls);var delay=0;urls.forEach(function(url){return browser.firefox&&!sameDomain(url)?setTimeout(download.bind(null,url),100*++delay):void download(url)})}});
|
||||
define(["browser"],function(browser){"use strict";function fallback(urls){var i=0;!function createIframe(){var frame=document.createElement("iframe");frame.style.display="none",frame.src=urls[i++],document.documentElement.appendChild(frame);var interval=setInterval(function(){"complete"!==frame.contentWindow.document.readyState&&"interactive"!==frame.contentWindow.document.readyState||(clearInterval(interval),setTimeout(function(){frame.parentNode.removeChild(frame)},1e3),i<urls.length&&createIframe())},100)}()}function sameDomain(url){var a=document.createElement("a");return a.href=url,location.hostname===a.hostname&&location.protocol===a.protocol}function download(url){var a=document.createElement("a");a.download="",a.href=url,a.dispatchEvent(new MouseEvent("click"))}return function(urls){if(!urls)throw new Error("`urls` required");if(void 0===document.createElement("a").download)return fallback(urls);var delay=0;urls.forEach(function(url){if(browser.firefox&&!sameDomain(url))return setTimeout(download.bind(null,url),100*++delay);download(url)})}});
|
Loading…
Add table
Add a link
Reference in a new issue