mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-22 03:50:55 +08:00
This commit is contained in:
parent
e55c12037a
commit
c04953be2a
@ -7,7 +7,12 @@ export const openByMobile = (uri: string) => {
|
||||
return;
|
||||
}
|
||||
if (window.siyuan.config.system.container === "ios") {
|
||||
try {
|
||||
new URL(uri);
|
||||
window.location.href = uri;
|
||||
} catch (e) {
|
||||
window.location.href = 'http://' + uri;
|
||||
}
|
||||
} else if (isInAndroid()) {
|
||||
window.JSAndroid.openExternal(uri);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user