mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
7e43212547
commit
52f8edb5c5
2 changed files with 5 additions and 5 deletions
|
|
@ -770,11 +770,11 @@ export const exportMd = (id: string) => {
|
||||||
const servePath = window.location.protocol + "//" + window.location.host + "/";
|
const servePath = window.location.protocol + "//" + window.location.host + "/";
|
||||||
const html = await onExport(response, undefined, servePath, {type: "pdf", id});
|
const html = await onExport(response, undefined, servePath, {type: "pdf", id});
|
||||||
if (isInAndroid()) {
|
if (isInAndroid()) {
|
||||||
window.JSAndroid.print(html);
|
window.JSAndroid.print(response.data.name, html);
|
||||||
} else if (isInHarmony()) {
|
} else if (isInHarmony()) {
|
||||||
window.JSHarmony.print(html);
|
window.JSHarmony.print(response.data.name, html);
|
||||||
} else if (isInIOS()) {
|
} else if (isInIOS()) {
|
||||||
window.webkit.messageHandlers.print.postMessage(html);
|
window.webkit.messageHandlers.print.postMessage(response.data.name + Constants.ZWSP + html);
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
|
||||||
4
app/src/types/index.d.ts
vendored
4
app/src/types/index.d.ts
vendored
|
|
@ -249,7 +249,7 @@ interface Window {
|
||||||
readHTMLClipboard(): string
|
readHTMLClipboard(): string
|
||||||
getBlockURL(): string
|
getBlockURL(): string
|
||||||
hideKeyboard(): void
|
hideKeyboard(): void
|
||||||
print(html: string): void
|
print(title: string, html: string): void
|
||||||
getScreenWidthPx(): number
|
getScreenWidthPx(): number
|
||||||
};
|
};
|
||||||
JSHarmony: {
|
JSHarmony: {
|
||||||
|
|
@ -261,7 +261,7 @@ interface Window {
|
||||||
readClipboard(): string
|
readClipboard(): string
|
||||||
readHTMLClipboard(): string
|
readHTMLClipboard(): string
|
||||||
returnDesktop(): void
|
returnDesktop(): void
|
||||||
print(html: string): void
|
print(title: string, html: string): void
|
||||||
getScreenWidthPx(): number
|
getScreenWidthPx(): number
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue