mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
a4fb57a360
commit
246ec1e2ce
2 changed files with 3 additions and 3 deletions
|
|
@ -302,7 +302,7 @@ export const exitSiYuan = async (setCurrentWorkspace = true) => {
|
|||
return;
|
||||
}
|
||||
if (isInIOS()) {
|
||||
window.webkit.messageHandlers.exit.postMessage();
|
||||
window.webkit.messageHandlers.exit.postMessage("");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -358,7 +358,7 @@ export const exitSiYuan = async (setCurrentWorkspace = true) => {
|
|||
return;
|
||||
}
|
||||
if (isInIOS()) {
|
||||
window.webkit.messageHandlers.exit.postMessage();
|
||||
window.webkit.messageHandlers.exit.postMessage("");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
2
app/src/types/index.d.ts
vendored
2
app/src/types/index.d.ts
vendored
|
|
@ -228,7 +228,7 @@ interface Window {
|
|||
setClipboard: { postMessage: (url: string) => void }
|
||||
purchase: { postMessage: (url: string) => void }
|
||||
print: { postMessage: (html: string) => void }
|
||||
exit: { postMessage: () => void }
|
||||
exit: { postMessage: (text: string) => void }
|
||||
}
|
||||
};
|
||||
htmlToImage: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue