Permalink
Browse files

Fixing black background on Framer Cloud

  • Loading branch information...
nvh committed Apr 26, 2017
1 parent cc24de1 commit 812dda3b3fd040fa18bd7f3aa7c12f4ef6f043f5
Showing with 7 additions and 1 deletion.
  1. +3 −1 framer/Components/DeviceComponent.coffee
  2. +4 −0 test/tests/DeviceComponentTest.coffee
@@ -377,8 +377,10 @@ class exports.DeviceComponent extends BaseClass
@define "hideBezel",
get: ->
return (@_hideBezel ? false) and Utils.isFramerStudio()
return false if not Utils.isFramerStudio()
return (@_hideBezel ? false)
set: (hideBezel) ->
return if not Utils.isFramerStudio()
@_hideBezel = hideBezel
if @_hideBezel
@_previousBackgroundColor = @background.backgroundColor
@@ -172,6 +172,10 @@ describe "DeviceComponent", ->
assert(key in ["fullscreen", "custom", "sony-w85Oc", "test"], "#{key} should have a platform specified")
describe "when not showing bezel", ->
before ->
Utils.isFramerStudio = ->
return true
it "the background color should follow the screen color", ->
Canvas.backgroundColor = "red"
Framer.Device.screen.backgroundColor = "green"

0 comments on commit 812dda3

Please sign in to comment.