add additional info to timer infos

This commit is contained in:
Luke Pulverenti
2017-10-18 21:19:48 -04:00
parent bca5f49ac9
commit 12adc7ae4c
7 changed files with 62 additions and 66 deletions
@@ -152,7 +152,7 @@ namespace MediaBrowser.WebDashboard.Api
}
}
html = html.Replace("<head>", "<head>" + GetMetaTags(mode) + GetCommonCss(mode, appVersion));
html = html.Replace("<head>", "<head>" + GetMetaTags(mode));
// Disable embedded scripts from plugins. We'll run them later once resources have loaded
if (html.IndexOf("<script", StringComparison.OrdinalIgnoreCase) != -1)
@@ -229,26 +229,6 @@ namespace MediaBrowser.WebDashboard.Api
return sb.ToString();
}
/// <summary>
/// Gets the common CSS.
/// </summary>
/// <param name="mode">The mode.</param>
/// <param name="version">The version.</param>
/// <returns>System.String.</returns>
private string GetCommonCss(string mode, string version)
{
var versionString = string.IsNullOrWhiteSpace(mode) ? "?v=" + version : string.Empty;
var files = new[]
{
"css/site.css" + versionString
};
var tags = files.Select(s => string.Format("<link rel=\"stylesheet\" href=\"{0}\" async />", s)).ToArray();
return string.Join(string.Empty, tags);
}
/// <summary>
/// Gets the common javascript.
/// </summary>