mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -9,6 +9,8 @@ export const openByMobile = (uri: string) => {
|
||||
if (isInIOS()) {
|
||||
if (uri.startsWith("assets/")) {
|
||||
window.webkit.messageHandlers.openLink.postMessage(encodeURI(location.origin + "/" + uri));
|
||||
} else if (uri.startsWith("/export/")) {
|
||||
window.webkit.messageHandlers.openLink.postMessage(encodeURI(location.origin + uri));
|
||||
} else {
|
||||
try {
|
||||
new URL(uri);
|
||||
|
||||
Reference in New Issue
Block a user