Comparing version 0.0.95 to 0.0.96
{ | ||
"name": "webdetta", | ||
"version": "0.0.95", | ||
"version": "0.0.96", | ||
"author": "Fedot Kriutchenko <fodyadev@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -30,1 +30,7 @@ export const copyText = text => navigator.clipboard.writeText(text); | ||
}); | ||
const canvasCtx = document.createElement('canvas').getContext('2d'); | ||
export const colorToHex = (colorStr) => { | ||
canvasCtx.fillStyle = colorStr; | ||
return ctx.fillStyle; | ||
} |
101403
2997