Files
talk/client/coral-framework/constants/url.js
T
2018-01-11 20:00:34 -07:00

8 lines
202 B
JavaScript

import url from 'url';
const base = document.querySelector('base');
const baseUrl = (base && url.parse(base.href)) || {};
export const BASE_URL = base.href;
export const BASE_PATH = baseUrl.pathname;