mod: handleWebview

Closes #194

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-05 13:30:36 +08:00
parent 65e7c0c4f4
commit 0fcd55755e

View File

@@ -373,7 +373,15 @@ class Utils {
bool inApp = false,
}) {
if (inApp.not && GStorage.openInBrowser) {
launchURL(url);
if (RegExp(r'^(https?://)?((www|m).)?(bilibili|bv23).com')
.hasMatch(url)) {
toDupNamed(
'/webview',
parameters: {'url': url},
);
} else {
launchURL(url);
}
} else {
if (off) {
Get.offNamed(