Skip to content

Commit

Permalink
js-copy-queue is gone. don't init zeroclipboard when theres no flash
Browse files Browse the repository at this point in the history
  • Loading branch information
muan committed Mar 20, 2015
1 parent 343a46f commit d3fc0e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions _assets/stuff.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ $(document).on 'emoji:ready', ->
hasFlash = Boolean(new ActiveXObject('ShockwaveFlash.ShockwaveFlash'))
catch exception
hasFlash = ('undefined' != typeof navigator.mimeTypes['application/x-shockwave-flash'])
if not hasFlash
$(".js-copy-queue").css("display", "none")

if navigator.userAgent.match(/iPad|iPhone/i)
if not hasFlash || navigator.userAgent.match(/iPad|iPhone/i)
$(document).on 'click', '.emoji-code', ->
this.selectionStart = 0
this.selectionEnd = this.value.length
Expand Down
5 changes: 1 addition & 4 deletions javascripts/stuff.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d3fc0e5

Please sign in to comment.