fix pixel ratio change check

This commit is contained in:
jean-emmanuel 2016-03-21 22:54:22 +01:00
parent 94b9c99319
commit f7ec2c3608

View file

@ -84,7 +84,7 @@ module.exports = {
var style = document.createElement('style');
style.innerHTML = data;
document.body.appendChild(style);
if (data.indexOf('--pixel-scale')) {
if (data.indexOf('--pixel-scale')!=-1) {
PXSCALE = data.match(/--pixel-scale\s*:\s*([^;]*)/)[1]
INITIALZOOM = PXSCALE
}