Permalink
Browse files

Improve browser detection for PDF placeholder

  • Loading branch information...
eelco committed May 11, 2016
1 parent decc0c0 commit 3d7e40f1927788d7dc31b4cdb30f3edc77f75cf9
Showing with 1 addition and 1 deletion.
  1. +1 −1 framer/Layer.coffee
View
@@ -655,7 +655,7 @@ class exports.Layer extends BaseClass
return
# Show placeholder image on any browser that doesn't support inline pdf
if _.endsWith(value.toLowerCase?(), ".pdf") and not (Utils.isSafari() or Utils.isFramerStudio())
if _.endsWith(value.toLowerCase?(), ".pdf") and (not Utils.isWebKit() or Utils.isChrome())
@style["background-image"] = "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAVlJREFUaAXtlwEOwiAMRdF4Cr3/0fQaSre9ZFSYLCrQpSSG/FLW9v92agghXJdP3KZlCp/J2up+WiUuzMt6zNukzPDYvALCsKme1/maV8BnQHqw9/IZ6KmAz0BP9ontMwATPXafgR6s65g+A5qRlrhmBu6FhG6LXf9/+JU/YclROkVWEs/8r9FLrChb2apSqVqWZgKmtRKz9/f+CdPxoVl8CAWylcWKUQZGwfhjB3OOHcw5djDn2MH6fBNLC42yaEnyoTXB2V36+lPlz+zN9x6HKfxrZwZ/HUbf5/lJviMpoBPWBWWxFJCtLNqplItIWuvPffx5Dphz7GB9vonNv4X2zICWuMTM3p7Gv/b5iVLmFaiZgb3M/Ns/Ud68AvIGkJ6ir8xh8wrQrzAve9Jjo2PzCsC8z4Aw0WP5DPRgXcf07wHNSEvsM9CS7VIsn4ESMy3sPgMtWN6K8QKfubDo2UqVogAAAABJRU5ErkJggg==')"
return

0 comments on commit 3d7e40f

Please sign in to comment.