Skip to content

Commit

Permalink
Merge pull request dropzone#995 from palmsey/master
Browse files Browse the repository at this point in the history
Check for textContent support in fallback
  • Loading branch information
enyo committed Jul 30, 2015
2 parents 0777f51 + 0f5643f commit bc4f9ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dropzone.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,11 @@ class Dropzone extends Emitter
@element.appendChild messageElement

span = messageElement.getElementsByTagName("span")[0]
span.textContent = @options.dictFallbackMessage if span
if span
if span.textContent?
span.textContent = @options.dictFallbackMessage
else if span.innerText?
span.innerText = @options.dictFallbackMessage

@element.appendChild @getFallbackForm()

Expand Down

0 comments on commit bc4f9ad

Please sign in to comment.