()
| 34 | }) |
| 35 | |
| 36 | function down() { |
| 37 | let href = targetimg.getAttribute('src'); |
| 38 | let imagepath = href; |
| 39 | let filename = getFileName(imagepath); |
| 40 | saveAs(imagepath, filename); |
| 41 | } |
| 42 | |
| 43 | function getFileName(str) { |
| 44 | return str.substring(str.lastIndexOf('/') + 1); |
nothing calls this directly
no test coverage detected