mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
e55c12037a
commit
c04953be2a
1 changed files with 6 additions and 1 deletions
|
|
@ -7,7 +7,12 @@ export const openByMobile = (uri: string) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (window.siyuan.config.system.container === "ios") {
|
if (window.siyuan.config.system.container === "ios") {
|
||||||
window.location.href = uri;
|
try {
|
||||||
|
new URL(uri);
|
||||||
|
window.location.href = uri;
|
||||||
|
} catch (e) {
|
||||||
|
window.location.href = 'http://' + uri;
|
||||||
|
}
|
||||||
} else if (isInAndroid()) {
|
} else if (isInAndroid()) {
|
||||||
window.JSAndroid.openExternal(uri);
|
window.JSAndroid.openExternal(uri);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue