import config from '../config/environment';

export function initialize(_container, application) {
  const { viewportConfig } = config;

  application.register('config:in-viewport', viewportConfig, { instantiate: false });
}

export default {
  name: 'viewport-config',
  initialize: initialize
};

import config from '../config/environment';

export function initialize(_container, application) {
  const { viewportConfig = {} } = config;

  application.register('config:in-viewport', viewportConfig, { instantiate: false });
}

export default {
  name: 'viewport-config',
  initialize: initialize
};

Set default value for `viewportConfig`.
Set default value for `viewportConfig`.

Prevents an error when `viewportConfig` is not defined in the app's
config.
