Fix bug 43925

This commit is contained in:
Oleg Korshul 2019-12-19 13:57:46 +03:00
parent cd28a55de6
commit 80c33dfcf7
2 changed files with 2 additions and 2 deletions

View file

@ -130,7 +130,7 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / (window.devicePixelRatio < 2 ? window.devicePixelRatio : window.devicePixelRatio / 2) + ';');
window.onbeforeunload = function() {
window.postMessage("{ \"reporter_command\" : \"end\" }", "*");

View file

@ -130,7 +130,7 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / (window.devicePixelRatio < 2 ? window.devicePixelRatio : window.devicePixelRatio / 2) + ';');
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },