mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +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;
|
return true;
|
||||||
}
|
}
|
||||||
initApi("/api");
|
initApi("/api");
|
||||||
|
clearAllStates(context);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
String? baseUrl = prefs.getString("baseUrl");
|
String? baseUrl = prefs.getString("baseUrl");
|
||||||
@@ -287,7 +288,9 @@ String? _prefix;
|
|||||||
final _titleLog = Logger("Title");
|
final _titleLog = Logger("Title");
|
||||||
|
|
||||||
void setCurrentTitle(String 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) {
|
if (!isPrefix && includePrefix && _prefix != null) {
|
||||||
title = "$_prefix - $title";
|
title = "$_prefix - $title";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user