From edb24a1bd6649e672bf142b9b873b47dec31f0e3 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 8 Sep 2021 21:51:27 -0700 Subject: Fix lint issues --- modern/src/map/mapUtil.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modern/src') diff --git a/modern/src/map/mapUtil.js b/modern/src/map/mapUtil.js index 9910963..2aa86c6 100644 --- a/modern/src/map/mapUtil.js +++ b/modern/src/map/mapUtil.js @@ -20,13 +20,13 @@ const canvasTintImage = (image, color) => { context.fillStyle = color; context.globalAlpha = 1; context.fillRect(0, 0, canvas.width, canvas.height); - context.globalCompositeOperation = "destination-atop"; + context.globalCompositeOperation = 'destination-atop'; context.globalAlpha = 1; context.drawImage(image, 0, 0, canvas.width, canvas.height); context.restore(); return canvas; -} +}; export const prepareIcon = (background, icon, color) => { const canvas = document.createElement('canvas'); @@ -42,7 +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) { + 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); -- cgit v1.2.3