gammatools/web/assets/js/config.js

14 lines
443 B
JavaScript
Raw Normal View History

if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
window.BASE_URL = 'http://127.0.0.1:5000';
2024-07-16 23:23:53 +00:00
window.DOC_ROOT = '';
} else {
window.BASE_URL = 'https://gammaworld.gmgauthier.com';
2024-07-16 23:23:53 +00:00
window.DOC_ROOT = '/gw';
}
2024-07-16 23:50:14 +00:00
window.IMG = `${window.DOC_ROOT}/assets/img`;
window.CSS = `${window.DOC_ROOT}/assets/css`;
window.JS = `${window.DOC_ROOT}/assets/js`;
2024-07-16 23:23:53 +00:00
window.DOC = `${window.DOC_ROOT}/pages`;