diff --git a/.gitignore b/.gitignore index 0f8ac72..40a11da 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,11 @@ -.sass-cache +### OSX ### +.DS_Store + +### PhPStorm / IntellJ IDEA ### +.idea/ +*.iml + +### Dependencies ### node_modules/ *.map +.sass-cache \ No newline at end of file diff --git a/src/script.js b/src/script.js index 11b5af6..b2ef542 100644 --- a/src/script.js +++ b/src/script.js @@ -1569,12 +1569,14 @@ globalConsoleContainerEl c.width = iframeBounds.width; c.height = iframeBounds.height; var ctx = c.getContext('2d'); + var devicePixelRatio = window.devicePixelRatio || 1; + ctx.drawImage( image, - iframeBounds.left, - iframeBounds.top, - iframeBounds.width, - iframeBounds.height, + iframeBounds.left * devicePixelRatio, + iframeBounds.top * devicePixelRatio, + iframeBounds.width * devicePixelRatio, + iframeBounds.height * devicePixelRatio, 0, 0, iframeBounds.width,