From fc0ee942dfc2e639491db2521fbd3f440bfd46d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Sun, 5 Feb 2023 16:18:14 -0500 Subject: [PATCH] misc: fix link color Change-Id: I7d59a8f1cfd01469463864905c3f2ad983afeb95 GitLab: #961 --- resources/misc/previewInterop.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/misc/previewInterop.js b/resources/misc/previewInterop.js index aadaf9fac..6e4709bf4 100644 --- a/resources/misc/previewInterop.js +++ b/resources/misc/previewInterop.js @@ -85,5 +85,9 @@ function parseMessage(messageId, message, showPreview, color='#0645AD') { } if (showPreview) getPreviewInfo(messageId, links[0].href) - window.jsbridge.emitLinkified(messageId, linkifyStr(message, color)) + window.jsbridge.emitLinkified(messageId, linkifyStr(message, { + attributes: { + style: "color:" + color + ";" + } + })) } -- GitLab