mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: jump url (#246)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -104,13 +104,12 @@ InlineSpan? richNode(item, context) {
|
||||
return;
|
||||
}
|
||||
if (url.startsWith('//')) {
|
||||
url = url.replaceFirst('//', 'https://');
|
||||
PiliScheme.routePush(Uri.parse(url));
|
||||
PiliScheme.routePushFromUrl('https:$url');
|
||||
return;
|
||||
}
|
||||
Utils.handleWebview(url.startsWith('//')
|
||||
? "https://${url.split('//').last}"
|
||||
: url);
|
||||
Utils.handleWebview(
|
||||
url.startsWith('//') ? "https://$url" : url,
|
||||
);
|
||||
},
|
||||
child: Text(
|
||||
i.text ?? '',
|
||||
|
||||
Reference in New Issue
Block a user