mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-08-06 09:39:25 +08:00
fix: Improve API URL handling and force init after setting a new config
This commit is contained in:
@ -15,9 +15,10 @@ Future main() async {
|
||||
await setupLocator();
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await locator<ManagerAPI>().initialize();
|
||||
await locator<PatcherAPI>().initialize();
|
||||
locator<RevancedAPI>().initialize();
|
||||
String apiUrl = locator<ManagerAPI>().getApiUrl();
|
||||
await locator<RevancedAPI>().initialize(apiUrl);
|
||||
locator<GithubAPI>().initialize();
|
||||
await locator<PatcherAPI>().initialize();
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user