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;
|
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…
Reference in New Issue
Block a user