* validate popup VRFS-3419
This commit is contained in:
parent
8948f0498f
commit
36b6699cde
|
|
@ -7,6 +7,8 @@ mixins = []
|
|||
|
||||
# this check ensures we attempt to listen if this component is created in a popup
|
||||
reactContext = if window.opener? then window.opener else window
|
||||
# make sure this is actually us opening the window, not someone else (by checking for MixerStore)
|
||||
reactContext = window unless 'MixerStore' in reactContext
|
||||
|
||||
MixerStore = reactContext.MixerStore
|
||||
MixerActions = reactContext.MixerActions
|
||||
|
|
|
|||
|
|
@ -3,7 +3,10 @@ logger = context.JK.logger
|
|||
|
||||
mixins = []
|
||||
|
||||
if window.opener?
|
||||
|
||||
# make sure this is actually us opening the window, not someone else (by checking for MixerStore)
|
||||
|
||||
if window.opener? && ('MixerStore' in window.opener)
|
||||
SessionActions = window.opener.SessionActions
|
||||
MediaPlaybackStore = window.opener.MediaPlaybackStore
|
||||
MixerActions = window.opener.MixerActions
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ context = window
|
|||
|
||||
mixins = []
|
||||
|
||||
# this check ensures we attempt to listen if this component is created in a popup
|
||||
if window.opener
|
||||
# make sure this is actually us opening the window, not someone else (by checking for MixerStore)
|
||||
if window.opener && ('MixerStore' in window.opener)
|
||||
mixins.push(Reflux.listenTo(window.opener.RecordingStore,"onRecordingStateChanged"))
|
||||
|
||||
@PopupRecordingStartStop = React.createClass({
|
||||
|
|
|
|||
Loading…
Reference in New Issue