mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
minify
This commit is contained in:
parent
82bcca376f
commit
8a6884abef
494 changed files with 256 additions and 120180 deletions
|
@ -1,30 +1 @@
|
|||
define(function () {
|
||||
'use strict';
|
||||
|
||||
return {
|
||||
|
||||
load: function (url, req, load, config) {
|
||||
|
||||
if (url.indexOf('://') === -1) {
|
||||
url = config.baseUrl + url;
|
||||
}
|
||||
|
||||
if (config.urlArgs) {
|
||||
url += config.urlArgs(url, url);
|
||||
}
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', url, true);
|
||||
|
||||
xhr.onload = function (e) {
|
||||
load(this.response);
|
||||
};
|
||||
|
||||
xhr.send();
|
||||
},
|
||||
|
||||
normalize: function (name, normalize) {
|
||||
return normalize(name);
|
||||
}
|
||||
};
|
||||
});
|
||||
define(function(){"use strict";return{load:function(url,req,load,config){url.indexOf("://")===-1&&(url=config.baseUrl+url),config.urlArgs&&(url+=config.urlArgs(url,url));var xhr=new XMLHttpRequest;xhr.open("GET",url,!0),xhr.onload=function(e){load(this.response)},xhr.send()},normalize:function(name,normalize){return normalize(name)}}});
|
Loading…
Add table
Add a link
Reference in a new issue