From 57c1170596f3d32cb2dcac4699c93d1e5fd3eae4 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 24 Jan 2018 08:26:17 -0800 Subject: [PATCH] Bugfixes, improvements to background selection. --- src/main/Main.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/Main.coffee b/src/main/Main.coffee index 37c812e87..fee87ba84 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -249,10 +249,10 @@ Main = div.style.position = 'absolute'; div.style.visibility = 'hidden'; $.add d.body, div - sDiv = window.getComputedStyle(div) - bgColor = sDiv.backgroundColor + bgColor = window.getComputedStyle(div).backgroundColor $.rm div - unless /^rgb\(/.test(bgColor) and sDiv.backgroundImage is 'none' + # Use body background if reply background is transparent + unless /^rgb\(/.test(bgColor) s = window.getComputedStyle(d.body) bgColor = "#{s.backgroundColor} #{s.backgroundImage} #{s.backgroundRepeat} #{s.backgroundPosition}" Main.bgColorStyle.textContent = """