handle boot args if initialLink is empty (#7537)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2024-03-27 15:51:30 +08:00 committed by GitHub
parent 6e689400b6
commit cc30f7aa02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1863,7 +1863,8 @@ Future<bool> initUniLinks() async {
// check cold boot
try {
final initialLink = await getInitialLink();
if (initialLink == null) {
print("initialLink: $initialLink");
if (initialLink == null || initialLink.isEmpty) {
return false;
}
return handleUriLink(uriString: initialLink);