fix: mobile, server page, jumps on loading (#8819)

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2024-07-25 00:13:22 +08:00
committed by GitHub
parent f7e9057a39
commit 0451a1c45f
3 changed files with 44 additions and 27 deletions

View File

@@ -1966,6 +1966,12 @@ pub fn is_preset_password() -> bool {
})
}
// Don't call this function for desktop version.
// We need this function because we want a sync return for mobile version.
pub fn is_preset_password_mobile_only() -> SyncReturn<bool> {
SyncReturn(is_preset_password())
}
/// Send a url scheme through the ipc.
///
/// * macOS only