Skip to content

Commit

Permalink
🐛 Use cache when reading DOM for color when highlighting is disabled
Browse files Browse the repository at this point in the history
Fixes #384
  • Loading branch information
abe33 committed Sep 8, 2015
1 parent ef652c5 commit b9ae0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mixins/canvas-drawer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class CanvasDrawer extends Mixin
#
# Returns a {String}.
getDefaultColor: ->
color = @retrieveStyleFromDom(['.editor'], 'color', false, false)
color = @retrieveStyleFromDom(['.editor'], 'color', false, true)
@transparentize(color, @getTextOpacity())

# Returns the text color for the passed-in `token` object.
Expand Down

0 comments on commit b9ae0f5

Please sign in to comment.