aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Browser/BrowserLauncher.cs
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2020-05-13 20:36:54 +0300
committerGitHub <noreply@github.com>2020-05-13 20:36:54 +0300
commitf08830ea00e7111d68f12b001995edc56177f6e4 (patch)
tree129e4760dac57a5cb69977c991d57eb9e9a63614 /Emby.Server.Implementations/Browser/BrowserLauncher.cs
parent69676373ca01411dc1053677974a9b519b5a253e (diff)
parent51cdb30741e5ad3d6ec9dc8a5383dc84d60f747a (diff)
Merge pull request #2774 from mark-monteiro/simplify-https-config
Simplify HTTPS Properties
Diffstat (limited to 'Emby.Server.Implementations/Browser/BrowserLauncher.cs')
-rw-r--r--Emby.Server.Implementations/Browser/BrowserLauncher.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/Browser/BrowserLauncher.cs b/Emby.Server.Implementations/Browser/BrowserLauncher.cs
index 96096e142..7f7c6a0be 100644
--- a/Emby.Server.Implementations/Browser/BrowserLauncher.cs
+++ b/Emby.Server.Implementations/Browser/BrowserLauncher.cs
@@ -31,18 +31,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);
+ logger?.LogError(ex, "Failed to open browser window with URL {URL}", relativeUrl);
}
}
}