hometown/app/javascript/mastodon/utils/config.js

11 lines
202 B
JavaScript

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