Files
talk/client/coral-framework/constants/url.js
T
2017-07-27 16:37:26 +10:00

8 lines
200 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;