From b62ecfe3400794817e4a70fbd98e01267aa6d268 Mon Sep 17 00:00:00 2001 From: tecc Date: Tue, 20 Jun 2023 22:03:08 +0200 Subject: [PATCH] fix(design): Disable getting background colour dynamically --- routes/design.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/design.vue b/routes/design.vue index c18bf2327..ab19a2443 100644 --- a/routes/design.vue +++ b/routes/design.vue @@ -165,9 +165,9 @@ export default { }, mounted() { if (!process.client) { return; } - this.$el.querySelectorAll('.colour').forEach(el => { + /*this.$el.querySelectorAll('.colour').forEach(el => { el.innerHTML = rgbToHex(getComputedStyle(el.parentElement).getPropertyValue('background-color')); - }); + });*/ this.$el.querySelectorAll('.font').forEach(el => { el.innerHTML = getComputedStyle(el.parentElement).getPropertyValue('font-family').split(',')[0].replaceAll('"', ''); });