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;
|
||||
}
|
||||
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()) {
|
||||
window.JSAndroid.openExternal(uri);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue