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

update components

This commit is contained in:
Luke Pulverenti 2016-10-18 01:06:48 -04:00
parent 138611efb5
commit 11615f4399
72 changed files with 829 additions and 623 deletions

View file

@ -1,4 +1,5 @@
define(function () {
'use strict';
var importedFiles = [];
@ -11,18 +12,18 @@ define(function () {
var url = cssId + '.html';
if (url.indexOf('://') == -1) {
if (url.indexOf('://') === -1) {
url = config.baseUrl + url;
}
if (importedFiles.indexOf(url) == -1) {
if (importedFiles.indexOf(url) === -1) {
importedFiles.push(url);
var link = document.createElement('link');
link.rel = 'import';
if (config.urlArgs) {
if (url.toLowerCase().indexOf('bower_') == -1 || url.toLowerCase().indexOf('emby-webcomponents') != -1) {
if (url.toLowerCase().indexOf('bower_') === -1 || url.toLowerCase().indexOf('emby-webcomponents') !== -1) {
url = url + config.urlArgs(cssId, url);
}
}
@ -39,8 +40,9 @@ define(function () {
},
normalize: function (name, normalize) {
if (name.substr(name.length - 5, 5) == '.html')
if (name.substr(name.length - 5, 5) === '.html') {
name = name.substr(0, name.length - 5);
}
return normalize(name);
}