This commit is contained in:
parent
5456d032c7
commit
1d0ccd19f8
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue