From 98a6abd36e6199da3ee1c2393b62b344cfc4f43e Mon Sep 17 00:00:00 2001 From: AshBardhan Date: Sun, 15 Oct 2017 11:55:51 +0530 Subject: [PATCH 1/2] Improved .gitignore file --- .gitignore | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 From 5b6fa361d59f3b0a7627d0190a8685b8ec5b3873 Mon Sep 17 00:00:00 2001 From: AshBardhan Date: Sun, 15 Oct 2017 11:59:41 +0530 Subject: [PATCH 2/2] Fixed screenshots for Retina display system --- src/script.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/script.js b/src/script.js index 9dda11f..6ad8eae 100644 --- a/src/script.js +++ b/src/script.js @@ -1567,12 +1567,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,