|
@@ -8,25 +8,14 @@ namespace Emby.Server.Implementations.Browser
|
|
/// </summary>
|
|
/// </summary>
|
|
public static class BrowserLauncher
|
|
public static class BrowserLauncher
|
|
{
|
|
{
|
|
- /// <summary>
|
|
|
|
- /// Opens the dashboard page.
|
|
|
|
- /// </summary>
|
|
|
|
- /// <param name="page">The page.</param>
|
|
|
|
- /// <param name="appHost">The app host.</param>
|
|
|
|
- private static void OpenDashboardPage(string page, IServerApplicationHost appHost)
|
|
|
|
- {
|
|
|
|
- var url = appHost.GetLocalApiUrl("localhost") + "/web/" + page;
|
|
|
|
-
|
|
|
|
- OpenUrl(appHost, url);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Opens the web client.
|
|
/// Opens the web client.
|
|
/// </summary>
|
|
/// </summary>
|
|
/// <param name="appHost">The app host.</param>
|
|
/// <param name="appHost">The app host.</param>
|
|
public static void OpenWebApp(IServerApplicationHost appHost)
|
|
public static void OpenWebApp(IServerApplicationHost appHost)
|
|
{
|
|
{
|
|
- OpenDashboardPage("index.html", appHost);
|
|
|
|
|
|
+ var url = appHost.GetLocalApiUrl("localhost") + "/web/index.html";
|
|
|
|
+ OpenUrl(appHost, url);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|