Enable network page in Frontend BETA

This commit is contained in:
Aurora Lahtela 2022-09-11 19:32:42 +03:00
parent 8cdbebf191
commit 4195865394

View File

@ -181,7 +181,12 @@ public class PageFactory {
return new PlayerPluginTab(navs.toString(), tabs.toString());
}
public NetworkPage networkPage() throws IOException {
public Page networkPage() throws IOException {
if (config.get().isTrue(PluginSettings.FRONTEND_BETA)) {
String reactHtml = getResource("index.html");
return () -> reactHtml;
}
return new NetworkPage(getResource("network.html"),
dbSystem.get(),
versionChecker.get(),