From 45c74370d0d8dae77775d38b8b0bff7afc583711 Mon Sep 17 00:00:00 2001 From: djmaze Date: Wed, 19 May 2021 11:24:53 +0200 Subject: [PATCH] Bugfix: has() is not a function --- dev/Stores/User/Pgp.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/Stores/User/Pgp.js b/dev/Stores/User/Pgp.js index 952295536..89d4baddf 100644 --- a/dev/Stores/User/Pgp.js +++ b/dev/Stores/User/Pgp.js @@ -340,11 +340,11 @@ export const PgpUserStore = new class { */ initMessageBodyControls(dom, rainLoopMessage) { const cl = dom && dom.classList; - if (!cl.has('inited')) { + if (!cl.contains('inited')) { cl.add('inited'); - const encrypted = cl.has('encrypted'), - signed = cl.has('signed'), + const encrypted = cl.contains('encrypted'), + signed = cl.contains('signed'), recipients = rainLoopMessage ? rainLoopMessage.getEmails(['from', 'to', 'cc']) : []; let verControl = null;