Undo some of the changes as we will load it via assetService in the angular main controller & fixes the double load issue
This commit is contained in:
@@ -60,26 +60,6 @@ namespace Umbraco.Web.JavaScript
|
||||
return WriteScript(jarray.ToString(), IOHelper.ResolveUrl(SystemDirectories.Umbraco), angularModule);
|
||||
}
|
||||
|
||||
public static string GetTinyJavascriptInitialization(HttpContextBase httpContext, IEnumerable<string> scripts)
|
||||
{
|
||||
var rawJs = new StringBuilder();
|
||||
rawJs.AppendLine("LazyLoad.js([");
|
||||
|
||||
var first = true;
|
||||
foreach (var file in scripts)
|
||||
{
|
||||
if (first) first = false;
|
||||
else rawJs.AppendLine(",");
|
||||
rawJs.Append("\"");
|
||||
rawJs.Append(file);
|
||||
rawJs.Append("\"");
|
||||
|
||||
}
|
||||
rawJs.Append("]);");
|
||||
|
||||
return rawJs.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a list of optimized script paths for the back office
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user