diff --git a/pywb/static/wombat.js b/pywb/static/wombat.js index 700dbf90..ab2dac4c 100644 --- a/pywb/static/wombat.js +++ b/pywb/static/wombat.js @@ -717,7 +717,15 @@ var _WBWombat = function($wbwindow, wbinfo) { $wbwindow.Crypto.prototype.getRandomValues = new_getrandom; $wbwindow.crypto.getRandomValues = new_getrandom; - } + } + + //============================================ + function init_fixed_ratio() { + if (Object.defineProperty) { + // fixed pix ratio + Object.defineProperty($wbwindow, "devicePixelRatio", {value: 1, configurable: false}); + } + } //============================================ function override_history_func(func_name) { @@ -2850,6 +2858,9 @@ var _WBWombat = function($wbwindow, wbinfo) { // Crypto Random init_crypto_random(); + // set fixed pixel ratio + init_fixed_ratio(); + // Date init_date_override(wbinfo.wombat_sec); diff --git a/pywb/templates/head_insert.html b/pywb/templates/head_insert.html index 7db428a1..143a62dc 100644 --- a/pywb/templates/head_insert.html +++ b/pywb/templates/head_insert.html @@ -34,7 +34,6 @@ {% endif %} - {% include banner_html ignore missing %}