Enable query page in Frontend BETA

This commit is contained in:
Aurora Lahtela 2022-11-22 10:30:02 +02:00
parent b759fe6121
commit 86f6cffc66
1 changed files with 4 additions and 0 deletions

View File

@ -252,6 +252,10 @@ public class PageFactory {
}
public Page queryPage() throws IOException {
if (config.get().isTrue(PluginSettings.FRONTEND_BETA)) {
String reactHtml = getResource("index.html");
return () -> reactHtml;
}
return new QueryPage(
getResource("query.html"),
locale.get(), theme.get(), versionChecker.get()