mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: http:// prefix issue fix (#2719)
This commit is contained in:
parent
381d2e6c71
commit
bfe6c8074a
@ -299,7 +299,7 @@ class _VisitURLAccessoryState extends State<_VisitURLAccessory>
|
|||||||
void onTap() {
|
void onTap() {
|
||||||
var content =
|
var content =
|
||||||
widget.cellContext.getCellData(loadIfNotExist: false)?.content ?? "";
|
widget.cellContext.getCellData(loadIfNotExist: false)?.content ?? "";
|
||||||
if (!content.contains('http://')) {
|
if (!content.startsWith('http://') && !content.startsWith('https://')) {
|
||||||
content = 'http://$content';
|
content = 'http://$content';
|
||||||
}
|
}
|
||||||
final uri = Uri.parse(content);
|
final uri = Uri.parse(content);
|
||||||
|
Loading…
Reference in New Issue
Block a user