about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/utils/config.js
blob: 932cd0cbf543e110eb5c3255f92f0fe9fc45ab07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import ready from '../ready';

export let assetHost = '';

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