(sha, path, animation = true)
| 96 | } |
| 97 | |
| 98 | function addImageToDom(sha, path, animation = true) |
| 99 | { |
| 100 | const src = dom.queryAll('img.sha-image-'+sha).setAttribute('src', app.encodeSrcURI(app.shortWindowsPath(path, true))); |
| 101 | |
| 102 | if(animation) |
| 103 | { |
| 104 | src.addClass('a', 'active', 'border'); |
| 105 | } |
| 106 | else |
| 107 | { |
| 108 | src.addClass('active', 'border'); |
| 109 | src.filter('.folder-poster-img').addClass('has-poster'); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | async function addProgressToDom(sha, progress, animation = true) |
| 114 | { |
no outgoing calls
no test coverage detected