Skip to content

Commit

Permalink
remove base64 prefix before creating image
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Oct 11, 2016
1 parent f07188e commit ffaad25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/dispatcher.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ handle 'uploadimage', (files) ->
handle 'onpasteimage', ->
element = document.getElementById 'preview-img'
element.src = clipboard.readImage().toDataURL()
element.src = element.src.replace /image\/png/, 'image/gif'
document.querySelector('#preview-container').classList.add('open')

handle 'uploadpreviewimage', ->
Expand Down

0 comments on commit ffaad25

Please sign in to comment.