Skip to content

Commit

Permalink
fix: Handle migration of default URL used in v1.22 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Nov 12, 2024
1 parent 1d43abd commit 59f645f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/services/manager_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 59f645f

Please sign in to comment.