From c23cc55aa82afeed1cfd5f12a77550bafa72b911 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Fri, 27 Dec 2013 18:01:51 -0500 Subject: fix bgcolor detection --- js/record.concat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/record.concat.js') diff --git a/js/record.concat.js b/js/record.concat.js index 11d379c..bff4d7f 100644 --- a/js/record.concat.js +++ b/js/record.concat.js @@ -1064,11 +1064,11 @@ function GifEncoder(){ function backgroundColor(){ var colors = [ source.style.backgroundColor, - document.body.backgroundColor, + document.body.style.backgroundColor, "white" ] for (var i in colors) { - if (colors[i] != "") return colors[i] + if (colors[i] && colors[i] != "") return colors[i] } } function capture(){ -- cgit v1.2.3-70-g09d2