bitomc 0.1.4

BitOMC wallet and indexer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function resize() {
  if (
    body.clientWidth * window.devicePixelRatio < img.naturalWidth
    || body.clientHeight * window.devicePixelRatio < img.naturalHeight
  ) {
    body.style.imageRendering = 'auto';
  } else {
    body.removeAttribute('style');
  }
}

let body = document.body;
let img = document.getElementsByTagName('img')[0];

(new ResizeObserver(resize)).observe(body);