From cb8888ea1aa149090d9dedbf63d84680f98be2aa Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Thu, 12 Jul 2018 16:51:48 +0200 Subject: [PATCH] Yes, so it turns out that making a small asthetic change after testing on every browser does actually break it :| --- www/common/cryptpad-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 69c67fdc5..25f21e435 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -843,8 +843,8 @@ define([ el.style.setProperty('background', 'var(--color)'); document.body.appendChild(el); var styles = getComputedStyle(el); - document.body.removeChild(el); var doesSupport = (styles.backgroundColor === color); + document.body.removeChild(el); return doesSupport; };