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

Function downloadPdf

contents/csdn.tsx:272–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270 }
271
272 function downloadPdf() {
273 const article = document.querySelector<HTMLElement>(".blog-content-box")
274 if (article) {
275 Print.print(article, { title: articleTitle })
276 .then(() => console.log("Printing complete"))
277 .catch((error) => console.error("Printing failed:", error))
278 }
279 }
280
281 function editMarkdown() {
282 const dom = document.querySelector(".blog-content-box")

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

printMethod · 0.80

Tested by

no test coverage detected