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

resolve safari load issues

This commit is contained in:
Luke Pulverenti 2016-04-02 12:31:09 -04:00
parent c3fd6c022f
commit d6865b769d
8 changed files with 54 additions and 15 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();