From 14574ba0d0b31aa310b6e550451b0a09aa3560dd Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 8 Mar 2023 06:55:44 -0800 Subject: Remove Firefox workaround --- modern/src/map/core/mapUtil.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modern/src/map/core/mapUtil.js b/modern/src/map/core/mapUtil.js index 1f8d5d8a..23805a3f 100644 --- a/modern/src/map/core/mapUtil.js +++ b/modern/src/map/core/mapUtil.js @@ -42,11 +42,7 @@ export const prepareIcon = (background, icon, color) => { const iconRatio = 0.5; const imageWidth = canvas.width * iconRatio; const imageHeight = canvas.height * iconRatio; - if (navigator.userAgent.indexOf('Firefox') > 0) { - context.drawImage(icon, (canvas.width - imageWidth) / 2, (canvas.height - imageHeight) / 2, imageWidth, imageHeight); - } else { - context.drawImage(canvasTintImage(icon, color), (canvas.width - imageWidth) / 2, (canvas.height - imageHeight) / 2, imageWidth, imageHeight); - } + context.drawImage(canvasTintImage(icon, color), (canvas.width - imageWidth) / 2, (canvas.height - imageHeight) / 2, imageWidth, imageHeight); } return context.getImageData(0, 0, canvas.width, canvas.height); -- cgit v1.2.3