mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-25 01:24:02 -05:00
813c84cd6c
Port 4c45b43cb8
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
11 lines
201 B
JavaScript
11 lines
201 B
JavaScript
import ready from './ready';
|
|
|
|
export let assetHost = '';
|
|
|
|
ready(() => {
|
|
const cdnHost = document.querySelector('meta[name=cdn-host]');
|
|
if (cdnHost) {
|
|
assetHost = cdnHost.content || '';
|
|
}
|
|
});
|