bitpay / cordova-plugin-qrscanner

A fast, energy efficient, highly-configurable QR code scanner for Cordova apps and the browser.
MIT License
567 stars 773 forks source link

fix: Remove style attribute from body for prevent unexpected background #382

Open alfonso-salces opened 1 year ago

alfonso-salces commented 1 year ago

In the current version of the plugin, when user leaves the qr scanner, this plugin remove the inline styles that we have in body tag before open qr scanner. With this PR, save the styles that we have in body tag before open scanner and when scanner is getting closed, then we rewrite the styles in body tag.