MCPcopy Create free account
hub / github.com/ampproject/amphtml / getDialogConfig_

Method getDialogConfig_

third_party/subscriptions-project/swg.js:6508–6515  ·  view source on GitHub ↗

* Gets display configuration options for the opened dialog. Uses the * responsive desktop design properties if the updated offer flows UI (for * SwG Basic) is enabled. Permits override to allow scrolling. * @param {!../model/client-config.ClientConfig} clientConfig * @param {boolean} sho

(clientConfig, shouldAllowScroll)

Source from the content-addressed store, hash-verified

6506 * @return {!../components/dialog.DialogConfig}
6507 */
6508 getDialogConfig_(clientConfig, shouldAllowScroll) {
6509 return clientConfig.useUpdatedOfferFlows
6510 ? {
6511 desktopConfig: {isCenterPositioned: true, supportsWideScreen: true},
6512 shouldDisableBodyScrolling: !shouldAllowScroll,
6513 }
6514 : {};
6515 }
6516
6517 /**
6518 * Returns the full URL that should be used for the activity iFrame view.

Callers 1

startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected