diff options
| author | Julie Lala <jules@okfoc.us> | 2013-12-27 18:01:51 -0500 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2013-12-27 18:01:51 -0500 |
| commit | c23cc55aa82afeed1cfd5f12a77550bafa72b911 (patch) | |
| tree | c3480b2426f81caff6826b02298f9cacf847fa1a /js/record.js | |
| parent | bf6421739d96d6a2f5744efe9016408c1c874dd0 (diff) | |
fix bgcolor detection
Diffstat (limited to 'js/record.js')
| -rw-r--r-- | js/record.js | 4 |
1 files changed, 2 insertions, 2 deletions
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(){ |
