mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-29 13:34:25 +02:00
fix: Handle migration of default URL used in v1.22 as well
This commit is contained in:
parent
57018a65df
commit
851b06b0d2
@ -72,10 +72,11 @@ class ManagerAPI {
|
||||
final apiUrl = getApiUrl().toLowerCase();
|
||||
|
||||
final isReleases = apiUrl.contains('releases.revanced.app');
|
||||
final isDomain = apiUrl.endsWith('api.revanced.app');
|
||||
final isV2 = apiUrl.contains('api.revanced.app/v2');
|
||||
final isV3 = apiUrl.contains('api.revanced.app/v3');
|
||||
|
||||
if (isReleases || isV2 || isV3) {
|
||||
if (isReleases || isDomain || isV2 || isV3) {
|
||||
await resetApiUrl();
|
||||
// At this point, the preference is removed.
|
||||
// Now, no more migration is needed because:
|
||||
|
Loading…
x
Reference in New Issue
Block a user