mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update requirecss
This commit is contained in:
parent
57708e9007
commit
91051df493
30 changed files with 600 additions and 221 deletions
|
@ -48,12 +48,12 @@
|
|||
}
|
||||
|
||||
if (!parentPathPromise) {
|
||||
parentPathPromise = $.Deferred();
|
||||
parentPathPromise.resolveWith(null, []);
|
||||
parentPathPromise = parentPathPromise.promise();
|
||||
parentPathPromise = new Promise(function (resolve, reject) {
|
||||
resolve();
|
||||
});
|
||||
}
|
||||
|
||||
Promise.all(promise, parentPathPromise).then(function (responses) {
|
||||
Promise.all([promise, parentPathPromise]).then(function (responses) {
|
||||
|
||||
var folders = responses[0];
|
||||
var parentPath = responses[1] || '';
|
||||
|
|
|
@ -26,7 +26,7 @@ define(function () {
|
|||
requireCss.load = function (cssId, req, load, config) {
|
||||
|
||||
// Somehow if the url starts with /css, require will get all screwed up since this extension is also called css
|
||||
cssId = cssId.replace('js/requirecss', 'css');
|
||||
cssId = cssId.replace('components/requirecss', 'css');
|
||||
var url = cssId + '.css';
|
||||
|
||||
var packageName = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue