diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-11-28 22:00:07 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-11-28 22:00:07 -0500 |
| commit | d2d32d37438bf4fcbb30c512485b82b520959cfb (patch) | |
| tree | 7eddf07f0f4a912862cde7747d3db89fa34fd8da | |
| parent | 12434d29bc932fe50994a587a5931a669b8f2e40 (diff) | |
update imports
| -rw-r--r-- | MediaBrowser.WebDashboard/Api/PackageCreator.cs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/MediaBrowser.WebDashboard/Api/PackageCreator.cs b/MediaBrowser.WebDashboard/Api/PackageCreator.cs index ae740c7d8..a01430840 100644 --- a/MediaBrowser.WebDashboard/Api/PackageCreator.cs +++ b/MediaBrowser.WebDashboard/Api/PackageCreator.cs @@ -304,21 +304,9 @@ namespace MediaBrowser.WebDashboard.Api .Replace("</body>", "</div>--></div></paper-drawer-panel></body>"); } - var versionString = !string.Equals(mode, "cordova", StringComparison.OrdinalIgnoreCase) ? "?v=" + appVersion : string.Empty; - - var imports = new[] - { - "vulcanize-out.html" + versionString - }; - var importsHtml = string.Join("", imports.Select(i => "<link rel=\"import\" href=\"" + i + "\" async>").ToArray()); - - // It would be better to make polymer completely dynamic and loaded on demand, but seeing issues with that - // In chrome it is causing the body to be hidden while loading, which leads to width-check methods to return 0 for everything - //imports = ""; - html = html.Replace("<head>", "<head>" + GetMetaTags(mode) + GetCommonCss(mode, appVersion)); - html = html.Replace("</body>", importsHtml + GetCommonJavascript(mode, appVersion) + "</body>"); + html = html.Replace("</body>", GetCommonJavascript(mode, appVersion) + "</body>"); var bytes = Encoding.UTF8.GetBytes(html); |
