refact: oidc, launch url (#11772)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2025-05-15 09:06:37 +08:00
committed by GitHub
parent ae7faea6d5
commit a73fa3cbf6
2 changed files with 5 additions and 1 deletions

View File

@@ -2878,6 +2878,7 @@ Future<bool> canBeBlocked() async {
return access_mode == 'view' || (access_mode.isEmpty && !option);
}
// to-do: web not implemented
Future<void> shouldBeBlocked(RxBool block, WhetherUseRemoteBlock? use) async {
if (use != null && !await use()) {
block.value = false;