fix pixel ratio change check
This commit is contained in:
parent
94b9c99319
commit
f7ec2c3608
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue