File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 175
175
const videoStop = videoControls . querySelector ( '#stopCapture' ) ;
176
176
177
177
let captureType = domNode . getAttribute ( 'data-nr-type' ) || 'still' ;
178
+ const instanceOrigin = domNode . getAttribute ( 'data-nr-origin' ) || window . location . origin ;
178
179
179
180
if ( validCaptureTypes . indexOf ( captureType ) === - 1 ) {
180
181
captureType = 'still' ;
210
211
body : data
211
212
} ;
212
213
213
- console . log ( `${ window . location . origin } /nr-component-camera/${ domNode . getAttribute ( 'data-nr-name' ) } ?type=${ type } ` ) ;
214
- return fetch ( `${ window . location . origin } /nr-component-camera/${ domNode . getAttribute ( 'data-nr-name' ) } ?type=${ type } ` , options )
214
+ console . log ( `${ instanceOrigin } /nr-component-camera/${ domNode . getAttribute ( 'data-nr-name' ) } ?type=${ type } ` ) ;
215
+ return fetch ( `${ instanceOrigin } /nr-component-camera/${ domNode . getAttribute ( 'data-nr-name' ) } ?type=${ type } ` , options )
215
216
. then ( res => {
216
217
217
218
if ( res . ok ) {
You can’t perform that action at this time.
0 commit comments