MCPcopy
hub / github.com/027xiguapi/code-box / downloadPdf

Function downloadPdf

contents/segmentfault.tsx:75–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 }
74
75 function downloadPdf() {
76 const article = document.querySelector<HTMLElement>(".container")
77 if (article) {
78 Print.print(article, { title: articleTitle })
79 .then(() => console.log("Printing complete"))
80 .catch((error) => console.error("Printing failed:", error))
81 }
82 }
83
84 function downloadWord() {
85 const dom = document.querySelector(".container")

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

printMethod · 0.80

Tested by

no test coverage detected