How to use the ember-get-config.baseURL function in ember-get-config

To help you get started, we’ve selected a few ember-get-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github miguelcobain / ember-leaflet / app / initializers / leaflet-assets.js View on Github external
export function initialize(/* container, application */) {
  if (typeof FastBoot === 'undefined') {
    let prefix = '';

    if (!isNone(config.rootURL)) {
      prefix = config.rootURL;
    } else if (!isNone(config.baseURL)) {
      prefix = config.baseURL;
    }

    L.Icon.Default.imagePath = `${prefix}assets/images/`;
  }
}
github miguelcobain / ember-leaflet / addon / initializers / leaflet-assets.js View on Github external
export function initialize(/* container, application */) {
  if (typeof FastBoot === 'undefined' && typeof L !== 'undefined') {
    let prefix = '';

    if (!isNone(config.rootURL)) {
      prefix = config.rootURL;
    } else if (!isNone(config.baseURL)) {
      prefix = config.baseURL;
    }

    L.Icon.Default.imagePath = `${prefix}assets/images/`;
  }
}
github miguelcobain / ember-leaflet / addon / initializers / leaflet-assets.js View on Github external
export function initialize(/* container, application */) {
  if (typeof FastBoot === 'undefined' && typeof L !== 'undefined') {
    let prefix = '';

    if (!isNone(config.rootURL)) {
      prefix = config.rootURL;
    } else if (!isNone(config.baseURL)) {
      prefix = config.baseURL;
    }

    L.Icon.Default.imagePath = `${prefix}assets/images/`;
  }
}
github miguelcobain / ember-leaflet / app / initializers / leaflet-assets.js View on Github external
export function initialize(/* container, application */) {
  if (typeof FastBoot === 'undefined') {
    let prefix = '';

    if (!isNone(config.rootURL)) {
      prefix = config.rootURL;
    } else if (!isNone(config.baseURL)) {
      prefix = config.baseURL;
    }

    L.Icon.Default.imagePath = `${prefix}assets/images/`;
  }
}