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; };