Skip to content

Commit

Permalink
Improve browser detection for PDF placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
eelco committed May 11, 2016
1 parent decc0c0 commit 3d7e40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framer/Layer.coffee
Expand Up @@ -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

Expand Down

0 comments on commit 3d7e40f

Please sign in to comment.