diff options
| author | David <daullmer@gmail.com> | 2020-06-14 12:49:43 +0200 |
|---|---|---|
| committer | David <daullmer@gmail.com> | 2020-06-14 12:49:43 +0200 |
| commit | 8a8bf4b6866e804c60baace62dbda9b690c5ece7 (patch) | |
| tree | 047d47638ba62138e6fe30a2eb22c3231b244e72 /Emby.Server.Implementations/Browser/BrowserLauncher.cs | |
| parent | fff3c789b98aad08f8ea66da275ff82c71dd8f2b (diff) | |
| parent | 0011e8df47380936742302ef40639a4626a780ed (diff) | |
Merge remote-tracking branch 'upstream/api-migration' into api-sessionservice
Diffstat (limited to 'Emby.Server.Implementations/Browser/BrowserLauncher.cs')
| -rw-r--r-- | Emby.Server.Implementations/Browser/BrowserLauncher.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/Browser/BrowserLauncher.cs b/Emby.Server.Implementations/Browser/BrowserLauncher.cs index e706401fd..f8108d1c2 100644 --- a/Emby.Server.Implementations/Browser/BrowserLauncher.cs +++ b/Emby.Server.Implementations/Browser/BrowserLauncher.cs @@ -33,18 +33,18 @@ namespace Emby.Server.Implementations.Browser /// Opens the specified URL in an external browser window. Any exceptions will be logged, but ignored. /// </summary> /// <param name="appHost">The application host.</param> - /// <param name="url">The URL.</param> - private static void TryOpenUrl(IServerApplicationHost appHost, string url) + /// <param name="relativeUrl">The URL to open, relative to the server base URL.</param> + private static void TryOpenUrl(IServerApplicationHost appHost, string relativeUrl) { try { string baseUrl = appHost.GetLocalApiUrl("localhost"); - appHost.LaunchUrl(baseUrl + url); + appHost.LaunchUrl(baseUrl + relativeUrl); } catch (Exception ex) { - var logger = appHost.Resolve<ILogger>(); - logger?.LogError(ex, "Failed to open browser window with URL {URL}", url); + var logger = appHost.Resolve<ILogger<IServerApplicationHost>>(); + logger?.LogError(ex, "Failed to open browser window with URL {URL}", relativeUrl); } } } |
