mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-10 20:45:36 +02:00
fix: Improve API URL handling and force init after setting a new config
This commit is contained in:
parent
c333fa3c33
commit
6c2ceed91f
4 changed files with 26 additions and 56 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue