mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 08:16:10 +01:00
🎨
This commit is contained in:
parent
c58a8d9648
commit
6419663081
2 changed files with 5 additions and 2 deletions
|
|
@ -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());
|
||||
|
|
|
|||
6
app/src/types/index.d.ts
vendored
6
app/src/types/index.d.ts
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue