This commit is contained in:
Ashita Prasad
2025-01-12 15:45:36 +05:30
parent 418f3991f6
commit 114b211437
3 changed files with 3 additions and 27 deletions

@ -3,12 +3,12 @@ import '../consts.dart';
String getRequestTitleFromUrl(String? url) {
if (url == null || url.trim() == "") {
return "untitled";
return kUntitled;
}
if (url.contains("://")) {
String rem = url.split("://")[1];
if (rem.trim() == "") {
return "untitled";
return kUntitled;
}
return rem;
}