Vanessa 2024-10-28 22:28:58 +08:00
parent 5456d032c7
commit 1d0ccd19f8

View file

@ -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);