[devdocsgjs/main: 888/1867] Revert adding transparent background to favicon doc images




commit 39ec9e4e3bb2bf0092e1b04df5b8b2c8eadc9f10
Author: Jasper van Merle <jaspervmerle gmail com>
Date:   Sat Aug 24 22:56:46 2019 +0200

    Revert adding transparent background to favicon doc images

 assets/javascripts/lib/favicon.coffee | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/assets/javascripts/lib/favicon.coffee b/assets/javascripts/lib/favicon.coffee
index c2da3300..8f3708e4 100644
--- a/assets/javascripts/lib/favicon.coffee
+++ b/assets/javascripts/lib/favicon.coffee
@@ -49,11 +49,6 @@ withImage = (url, action) ->
       docIconPercentage = 65
       destinationCoords = size / 100 * (100 - docIconPercentage)
       destinationSize = size / 100 * docIconPercentage
-      paddingSize = destinationSize + 1
-
-      imageData = ctx.getImageData(destinationCoords, destinationCoords, paddingSize, paddingSize)
-      transparentImageData = new ImageData(new Uint8ClampedArray(imageData.data.length), paddingSize, 
paddingSize)
-      ctx.putImageData(transparentImageData, destinationCoords, destinationCoords)
 
       ctx.drawImage(docImg, sourceX, sourceY, sourceSize, sourceSize, destinationCoords, destinationCoords, 
destinationSize, destinationSize)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]