mirror of
https://github.com/foss42/apidash.git
synced 2025-06-10 23:27:54 +08:00
cleanup
This commit is contained in:
lib
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user