This commit is contained in:
Vanessa 2025-03-24 22:37:12 +08:00
parent c58a8d9648
commit 6419663081
2 changed files with 5 additions and 2 deletions

View file

@ -166,6 +166,7 @@ window.reconnectWebSocket = () => {
window.siyuan.mobile.popEditor.protyle.ws.send("ping", {});
};
window.goBack = goBack;
window.showMessage = showMessage;
window.processIOSPurchaseResponse = processIOSPurchaseResponse;
window.showKeyboardToolbar = (height) => {
document.getElementById("keyboardToolbar").setAttribute("data-keyboardheight", (height ? height : window.outerHeight / 2 - 42).toString());

View file

@ -190,8 +190,8 @@ interface Window {
}
}
htmlToImage: {
toCanvas:(element: Element) => Promise<HTMLCanvasElement>
toBlob:(element: Element) => Promise<Blob>
toCanvas: (element: Element) => Promise<HTMLCanvasElement>
toBlob: (element: Element) => Promise<Blob>
};
JSAndroid: {
returnDesktop(): void
@ -220,6 +220,8 @@ interface Window {
goBack(): void
showMessage(message: string, timeout: number, type: string, messageId?: string): void
reconnectWebSocket(): void
showKeyboardToolbar(height: number): void