Skip to content
Browse files

fix for / iFrame related problem

  • Loading branch information
marckrenn authored and eelco committed Jun 15, 2017
1 parent dc0728f commit 76f4f256cc3b73f28434cd3a89d671f808a674c4
Showing with 2 additions and 2 deletions.
  1. +2 −2 framer/
@@ -9,9 +9,9 @@ class MIDIInput extends BaseClass
get: -> @_inputs?.length or @_request
set: (value) ->
return unless value isnt @enabled
return @_requestRejected() if not navigator.requestMIDIAccess
return @_requestRejected() if not window.parent.navigator.requestMIDIAccess
if value
@_request = navigator.requestMIDIAccess().then @_requestResolved, @_requestRejected
@_request = window.parent.navigator.requestMIDIAccess().then @_requestResolved, @_requestRejected
@_inputs?.map close
@_request = null

0 comments on commit 76f4f25

Please sign in to comment.
You can’t perform that action at this time.