mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-24 12:46:49 +08:00
fix: login page may not display on web
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user