()
| 901 | const desc = toolbar.querySelector(".ufs-desc"); |
| 902 | |
| 903 | function updateSize() { |
| 904 | if (img.naturalWidth && img.naturalHeight) { |
| 905 | let resolution = getResolutionCategory( |
| 906 | img.naturalWidth, |
| 907 | img.naturalHeight |
| 908 | ); |
| 909 | sizeEle.innerText = |
| 910 | `${img.naturalWidth} x ${img.naturalHeight}` + |
| 911 | (resolution ? ` ~ ${resolution}` : ""); |
| 912 | } |
| 913 | } |
| 914 | |
| 915 | function updateZoom() { |
| 916 | if (img.naturalWidth && img.naturalHeight) { |
no test coverage detected