fix: login page may not display on web

This commit is contained in:
2023-09-14 18:39:28 +08:00
parent a9f09ffdcd
commit dfe214009d

View File

@@ -87,6 +87,7 @@ bool tryInitApi(BuildContext context) {
return true;
}
initApi("/api");
clearAllStates(context);
return true;
}
String? baseUrl = prefs.getString("baseUrl");
@@ -287,7 +288,9 @@ String? _prefix;
final _titleLog = Logger("Title");
void setCurrentTitle(String title,
{bool isPrefix = false, bool includePrefix = true, bool usePrefix = false}) {
{bool isPrefix = false,
bool includePrefix = true,
bool usePrefix = false}) {
if (!isPrefix && includePrefix && _prefix != null) {
title = "$_prefix - $title";
}