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

fix safari load issues

This commit is contained in:
Luke Pulverenti 2016-04-03 13:36:47 -04:00
parent 948aebfb44
commit f4f15d265c
11 changed files with 98 additions and 358 deletions

View file

@ -47,7 +47,13 @@ define(function () {
link.setAttribute('rel', 'stylesheet');
link.setAttribute('type', 'text/css');
link.onload = load;
link.setAttribute('href', url + "?" + config.urlArgs);
var linkUrl = url;
if (config.urlArgs) {
linkUrl += config.urlArgs(cssId, url);
}
link.setAttribute('href', linkUrl);
document.head.appendChild(link);
} else {
load();