Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: Support http for dapps
Browse files Browse the repository at this point in the history
  • Loading branch information
reasje committed Aug 16, 2024
1 parent 2979cd4 commit c7dad4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ Widget buildCard(
)
: image.contains(
'https',
) || image.contains(
'http',
)
? image.contains(
'svg',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AddBookmarkPresenter extends CompletePresenter<void> {

Future<void> onSave() async {
String url = urlController.text;
url = url.contains('https') ? url : 'https://$url';
url = url.contains('https') || url.contains('http') ? url : 'https://$url';
loading = true;

try {
Expand Down

0 comments on commit c7dad4a

Please sign in to comment.