修改ios跳转逻辑
This commit is contained in:
@@ -98,9 +98,9 @@ function isAppInstalled(scheme) {
|
||||
// 尝试打开应用
|
||||
window.location.href = scheme;
|
||||
// 如果应用打开,则在500毫秒后捕获超时错误
|
||||
setTimeout(() => {
|
||||
window.location.href = 'https://apps.apple.com/app/id6446155565';
|
||||
}, 500);
|
||||
// setTimeout(() => {
|
||||
// window.location.href = 'https://apps.apple.com/app/id6446155565';
|
||||
// }, 500);
|
||||
|
||||
// 应用可能打开,也可能没有打开,所以这里不返回结果
|
||||
|
||||
|
Reference in New Issue
Block a user