aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/EntryPoints
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-02-25 17:01:57 +0100
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-02-25 17:01:57 +0100
commit1b5999a1bc11ee386131e4bbce561896c0e1bced (patch)
tree1985156876bd209c536dd7522a842b7733693076 /Emby.Server.Implementations/EntryPoints
parent26af5ea45a8ea02b7a3f20b0ebc31ef19f850dea (diff)
Open the Swagger API page on server start if not hosting the static web content
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints')
-rw-r--r--Emby.Server.Implementations/EntryPoints/StartupWizard.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs b/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
index 5f2d629fea..6b7e2805bd 100644
--- a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
+++ b/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
@@ -36,7 +36,11 @@ namespace Emby.Server.Implementations.EntryPoints
return Task.CompletedTask;
}
- if (!_config.Configuration.IsStartupWizardCompleted)
+ if (!_appHost.IsHostingContent)
+ {
+ BrowserLauncher.OpenSwaggerPage(_appHost);
+ }
+ else if (!_config.Configuration.IsStartupWizardCompleted)
{
BrowserLauncher.OpenWebApp(_appHost);
}