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.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/record.js') diff --git a/js/record.js b/js/record.js index 9fbb503..9fd1de4 100644 --- a/js/record.js +++ b/js/record.js @@ -156,11 +156,11 @@ 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