From 37d0f4947ef24edd5605351cbfa63a20caee8fe8 Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Tue, 20 Apr 2021 12:36:44 +0100 Subject: [PATCH] random colors for messages --- lnbits/extensions/copilot/templates/copilot/compose.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnbits/extensions/copilot/templates/copilot/compose.html b/lnbits/extensions/copilot/templates/copilot/compose.html index 31a445b9..f50d6622 100644 --- a/lnbits/extensions/copilot/templates/copilot/compose.html +++ b/lnbits/extensions/copilot/templates/copilot/compose.html @@ -96,8 +96,9 @@ methods: { showNotif: function (userMessage) { var colour = colours[Math.floor(Math.random() * colours.length)] + console.log(String(colour)) this.$q.notify({ - color: colour, + color: String(colour), html: true, message: '

' + userMessage + '

', position: 'left',