1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +02:00

chore: change var to let

This commit is contained in:
David Wheatley
2022-10-21 14:02:53 +01:00
committed by GitHub
parent ad0624770d
commit 4966bdeb9a

View File

@@ -6,8 +6,7 @@
*/ */
export default function isDark(hexcolor: String) { export default function isDark(hexcolor: String) {
let hexnumbers = hexcolor.replace("#", "");
var hexnumbers = hexcolor.replace("#", "");
if (hexnumbers.length == 3) { if (hexnumbers.length == 3) {
hexnumbers += hexnumbers; hexnumbers += hexnumbers;