(e)
| 216 | |
| 217 | var codepenRE = /(https:\/\/codepen\.io\/[\w]+\/(\w+)\/(\w+))/; |
| 218 | function handlePaste(e) { |
| 219 | var clipboard = window.clipboardData || e.clipboardData; |
| 220 | var text = clipboard.getData("Text") || clipboard.getData("text/plain"); |
| 221 | if (!text) return; |
| 222 | let match = text.match(codepenRE); |
| 223 | if (match) { |
| 224 | fetchCodepen(match[0]); |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | var TEMPLATE_MARKER = "/*use-itty-bitty-template*/"; |
| 229 | function fetchCodepen(url) { |
nothing calls this directly
no test coverage detected