update shared components
This commit is contained in:
parent
98b0114719
commit
1190972d6c
13 changed files with 129 additions and 107 deletions
29
dashboard-ui/bower_components/emby-webcomponents/require/requiretext.js
vendored
Normal file
29
dashboard-ui/bower_components/emby-webcomponents/require/requiretext.js
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
define(function () {
|
||||
|
||||
var importedFiles = [];
|
||||
|
||||
return {
|
||||
|
||||
load: function (url, req, load, config) {
|
||||
|
||||
if (url.indexOf('http') != 0 && url.indexOf('file:') != 0) {
|
||||
url = config.baseUrl + url;
|
||||
}
|
||||
|
||||
url = url + "?" + config.urlArgs;
|
||||
|
||||
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);
|
||||
}
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue