mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 14:04:26 +02:00
chore: Merge branch dev
to main
(#2311)
This commit is contained in:
commit
a0c2a17bab
@ -72,10 +72,11 @@ class ManagerAPI {
|
|||||||
final apiUrl = getApiUrl().toLowerCase();
|
final apiUrl = getApiUrl().toLowerCase();
|
||||||
|
|
||||||
final isReleases = apiUrl.contains('releases.revanced.app');
|
final isReleases = apiUrl.contains('releases.revanced.app');
|
||||||
|
final isDomain = apiUrl.endsWith('api.revanced.app');
|
||||||
final isV2 = apiUrl.contains('api.revanced.app/v2');
|
final isV2 = apiUrl.contains('api.revanced.app/v2');
|
||||||
final isV3 = apiUrl.contains('api.revanced.app/v3');
|
final isV3 = apiUrl.contains('api.revanced.app/v3');
|
||||||
|
|
||||||
if (isReleases || isV2 || isV3) {
|
if (isReleases || isDomain || isV2 || isV3) {
|
||||||
await resetApiUrl();
|
await resetApiUrl();
|
||||||
// At this point, the preference is removed.
|
// At this point, the preference is removed.
|
||||||
// Now, no more migration is needed because:
|
// Now, no more migration is needed because:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user