mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: view note
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -787,6 +787,7 @@ class Utils {
|
||||
String url, {
|
||||
bool off = false,
|
||||
bool inApp = false,
|
||||
Map? parameters,
|
||||
}) async {
|
||||
if (inApp.not && GStorage.openInBrowser) {
|
||||
if ((await PiliScheme.routePushFromUrl(url, selfHandle: true)).not) {
|
||||
@@ -796,7 +797,10 @@ class Utils {
|
||||
if (off) {
|
||||
Get.offNamed(
|
||||
'/webview',
|
||||
parameters: {'url': url},
|
||||
parameters: {
|
||||
'url': url,
|
||||
if (parameters != null) ...parameters,
|
||||
},
|
||||
);
|
||||
} else {
|
||||
PiliScheme.routePushFromUrl(url);
|
||||
|
||||
Reference in New Issue
Block a user