mirror of
https://github.com/flarum/core.git
synced 2025-08-05 16:07:34 +02:00
Merge branch 'contrast-util' into tag-contrast
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user