Debug info: UUID helper

This commit is contained in:
M66B
2023-08-30 21:12:11 +02:00
parent 3a1db5a280
commit b57a3dc7bb
3 changed files with 13 additions and 0 deletions

View File

@@ -573,6 +573,13 @@ public class HtmlHelper {
final Document document = new Cleaner(safelist).clean(parsed);
if (BuildConfig.DEBUG)
for (Element e : document.select("span:matchesOwn(^UUID: " + Helper.REGEX_UUID + ")")) {
String t = e.text();
String uuid = t.substring(t.indexOf(' ') + 1);
e.html("UUID: <a href='" + BuildConfig.BUGSNAG_URI + uuid + "'>" + uuid + "</a>");
}
// Remove tracking pixels
if (disable_tracking)
removeTrackingPixels(context, document);