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

Function downloadPdf

contents/php.tsx:75–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

PlasmoOverlayFunction · 0.70

Calls 1

printMethod · 0.80

Tested by

no test coverage detected