@@ -29,6 +29,7 @@ import { ConfirmAlert } from '../../../shared/confirm-alert/confirm-alert.servic
29
29
import { ContactSelectionDialogComponent } from '../../../shared/contact-selection-dialog/contact-selection-dialog.component' ;
30
30
import { DiaBackendAssetRepository } from '../../../shared/dia-backend/asset/dia-backend-asset-repository.service' ;
31
31
import { DiaBackendAuthService } from '../../../shared/dia-backend/auth/dia-backend-auth.service' ;
32
+ import { BUBBLE_IFRAME_URL } from '../../../shared/dia-backend/secret' ;
32
33
import { DiaBackendWorkflowService } from '../../../shared/dia-backend/workflow/dia-backend-workflow.service' ;
33
34
import { ErrorService } from '../../../shared/error/error.service' ;
34
35
import { MediaStore } from '../../../shared/media/media-store/media-store.service' ;
@@ -183,11 +184,8 @@ export class DetailsPage {
183
184
readonly iframeUrl$ = this . activeDetailedCapture$ . pipe (
184
185
distinctUntilChanged ( ) ,
185
186
map ( detailedCapture => {
186
- const host = 'https://captureappiframe.bubbleapps.io' ;
187
- const path = '' ;
188
187
const params = `pid=${ detailedCapture . id } &iframeLoadedFrom=CaptureApp` ;
189
- // const params = `pid=288036ab-5768-4270-988b-a85d7bd11eb3&iframeLoadedFrom=CaptureApp`;
190
- const url = `${ host } /${ path } ?${ params } ` ;
188
+ const url = `${ BUBBLE_IFRAME_URL } /?${ params } ` ;
191
189
return this . sanitizer . bypassSecurityTrustResourceUrl ( url ) ;
192
190
} )
193
191
) ;
@@ -209,10 +207,8 @@ export class DetailsPage {
209
207
distinctUntilChanged ( ) ,
210
208
map ( ( [ detailedCapture ] ) => {
211
209
const token = this . userToken ;
212
- const host = 'https://captureappiframe.bubbleapps.io' ;
213
- const path = 'version-qa-release/asset_page' ;
214
210
const params = `pid=${ detailedCapture . id } &token=${ token } &iframeLoadedFrom=CaptureApp` ;
215
- const url = `${ host } / ${ path } ?${ params } ` ;
211
+ const url = `${ BUBBLE_IFRAME_URL } /asset_page ?${ params } ` ;
216
212
return this . sanitizer . bypassSecurityTrustResourceUrl ( url ) ;
217
213
} )
218
214
) ;
@@ -257,7 +253,7 @@ export class DetailsPage {
257
253
258
254
iframeUrlFor ( detailedCapture : any ) {
259
255
return this . sanitizer . bypassSecurityTrustResourceUrl (
260
- `https://captureappiframe.bubbleapps.io /asset_page?pid=${ detailedCapture . id } `
256
+ `${ BUBBLE_IFRAME_URL } /asset_page?pid=${ detailedCapture . id } `
261
257
) ;
262
258
}
263
259
0 commit comments