Merge "Don't use deprecated jquery.hidpi module"

This commit is contained in:
jenkins-bot 2018-10-09 16:23:09 +00:00 committed by Gerrit Code Review
commit 6ccf2a3568
3 changed files with 2 additions and 3 deletions

View file

@ -108,7 +108,6 @@
"mediawiki.storage",
"oojs",
"jquery.fullscreen",
"jquery.hidpi",
"jquery.throttle-debounce",
"jquery.color",
"jquery.tipsy",

View file

@ -61,7 +61,7 @@
viewportHeight: $( window ).height(),
canvasWidth: canvasDimensions.width,
canvasHeight: canvasDimensions.height,
devicePixelRatio: $.devicePixelRatio(),
devicePixelRatio: window.devicePixelRatio || 1,
imgWidth: imageWidths.cssWidth,
imageAspectRatio: imageWidths.cssWidth / imageWidths.cssHeight,
thumbWidth: imageWidths.real,

View file

@ -77,7 +77,7 @@
],
// screen pixel per CSS pixel
devicePixelRatio: $.devicePixelRatio()
devicePixelRatio: window.devicePixelRatio || 1
};
/**