08-27-周三_17-09-29
This commit is contained in:
1
node_modules/prismjs/plugins/download-button/prism-download-button.min.js
generated
vendored
Normal file
1
node_modules/prismjs/plugins/download-button/prism-download-button.min.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&Prism.plugins.toolbar.registerButton("download-file",function(t){var e=t.element.parentNode;if(e&&/pre/i.test(e.nodeName)&&e.hasAttribute("data-src")&&e.hasAttribute("data-download-link")){var a=e.getAttribute("data-src"),n=document.createElement("a");return n.textContent=e.getAttribute("data-download-link-label")||"Download",n.setAttribute("download",""),n.href=a,n}});
|
Reference in New Issue
Block a user