src/common/src/createQRScannerAdapter.js
function clearBackground() {
  var body = document.body;
  if (body.style) {
    body.style.backgroundColor = 'rgba(0,0,0,0.01)';
    body.style.backgroundImage = '';
    setTimeout(function() {
      body.style.backgroundColor = 'transparent';
    }, 1);
    if (body.parentNode && body.parentNode.style) {
      body.parentNode.style.backgroundColor = 'transparent';
      body.parentNode.style.backgroundImage = '';
    }
  }
}
function clearBackground() {
  var body = document.body;
  if (body.style) {
    body.style.backgroundColor = 'rgba(0,0,0,0.01)';
    body.style.backgroundImage = '';
    setTimeout(function() {
      body.style.backgroundColor = 'transparent';
    }, 1);
    if (body.parentNode && body.parentNode.style) {
      body.parentNode.style.backgroundColor = 'transparent';
      body.parentNode.style.backgroundImage = '';
    }
  }
}
function clearBackground ( ) { var body = document . body ; if ( body . style ) { body . style . backgroundColor = 'rgba(0,0,0,0.01)' ; body . style . backgroundImage = '' ; setTimeout ( function ( ) { body . style . backgroundColor = 'transparent' ; } , 1 ) ; if ( body . parentNode && body . parentNode . style ) { body . parentNode . style . backgroundColor = 'transparent' ; body . parentNode . style . backgroundImage = '' ; } } }
Simple utility method to ensure the background is transparent. Used by the plugin to force re-rendering immediately after the native webview background is made transparent.
Simple utility method to ensure the background is transparent . Used by the plugin to force re - rendering immediately after the native webview background is made transparent .