diff --git a/lib/app_sources/html.dart b/lib/app_sources/html.dart
index 22f5f3d..15874ad 100644
--- a/lib/app_sources/html.dart
+++ b/lib/app_sources/html.dart
@@ -146,10 +146,7 @@ Future>> grabLinksCommon(
.map((e) => MapEntry(ensureAbsoluteUrl(e.key, reqUrl), e.value))
.toList();
if (allLinks.isEmpty || matchLinksOutsideATags) {
- allLinks = getLinksInLines(rawBody);
- }
- if (allLinks.isEmpty) {
- // Getting desperate
+ // Decode the body if the response is a JSON
try {
var jsonStrings = collectAllStringsFromJSONObject(jsonDecode(rawBody));
allLinks = getLinksInLines(jsonStrings.join('\n'));
@@ -163,7 +160,7 @@ Future>> grabLinksCommon(
);
}
} catch (e) {
- //
+ allLinks = getLinksInLines(rawBody);
}
}
List> links = [];