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

Function downloadPdf

contents/oschina.tsx:72–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

printMethod · 0.80

Tested by

no test coverage detected