about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/util/config.js
blob: c3e2b73aea4d3feaa289c9b209b872f48bfa8313 (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 || '';
  }
});