mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 05:10:08 +08:00
8 lines
202 B
JavaScript
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;
|