Skip to content

Commit

Permalink
Rename methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kruplm committed Jul 3, 2023
1 parent 882f5cf commit 4f7a6cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shell/dotnet/Shell/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private void ConfigureServices(HostBuilderContext context, IServiceCollection se
private async Task OnHostInitializedAsync()
{
InjectMessageRouterConfig();
InjectFDC3();
InjectFdc3();
}

private void OnAsyncStartupCompleted(StartupEventArgs e)
Expand Down Expand Up @@ -179,15 +179,15 @@ private void InjectMessageRouterConfig()
""");
}

private void InjectFDC3()
private void InjectFdc3()
{
string bundle = @"fdc3-iife-bundle.js";
string iife = ReadResource(bundle);
string iife = ReadPreloadResource(bundle);

WebWindow.AddPreloadScript(iife);
}

public string ReadResource(string name)
public string ReadPreloadResource(string name)
{
var assembly = Assembly.GetExecutingAssembly();
string resourcePath = $$"""Shell.Preload.{{name}}""";
Expand Down

0 comments on commit 4f7a6cf

Please sign in to comment.