Skip to content

Commit

Permalink
🐛 #12592
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Sep 25, 2024
1 parent a28f0e7 commit 76c9243
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions app/src/protyle/util/compatibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@ export const openByMobile = (uri: string) => {
if (!uri) {
return;
}
if (window.siyuan.config.system.container === "ios") {
if (uri.startsWith("assets/")) {
window.location.href = uri;
} else {
try {
new URL(uri);
window.location.href = uri;
} catch (e) {
window.location.href = "https://" + uri;
}
}
if (isInIOS()) {
window.webkit.messageHandlers.openLink.postMessage(uri);
} else if (isInAndroid()) {
window.JSAndroid.openExternal(uri);
} else {
Expand Down

0 comments on commit 76c9243

Please sign in to comment.