Skip to content

Commit

Permalink
Fix display of fullscreen device when embedded in an in iframe.
Browse files Browse the repository at this point in the history
  • Loading branch information
eelco committed Dec 1, 2016
1 parent a65ffb2 commit 367de0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framer/Components/DeviceComponent.coffee
Expand Up @@ -161,9 +161,6 @@ class exports.DeviceComponent extends BaseClass

_shouldRenderFullScreen: ->

if Utils.isInsideIframe()
return false

if not @_device
return true

Expand All @@ -173,6 +170,9 @@ class exports.DeviceComponent extends BaseClass
if @deviceType is "fullscreen"
return true

if Utils.isInsideIframe()
return false

if Utils.deviceType() is "phone" and Utils.deviceType() is @_device.deviceType
return true

Expand Down

0 comments on commit 367de0b

Please sign in to comment.