glitchier-soc/app/javascript/flavours/glitch/util/config.js

11 lines
201 B
JavaScript
Raw Normal View History

import ready from './ready';
export let assetHost = '';
ready(() => {
const cdnHost = document.querySelector('meta[name=cdn-host]');
if (cdnHost) {
assetHost = cdnHost.content || '';
}
});