~cytrogen/masto-fe

ref: ceeb2b8c419bce653fd9296c42ab655aa6a816f3 masto-fe/app/javascript/mastodon/utils/config.js -rw-r--r-- 202 bytes
ceeb2b8c — Eugen Rochko Fix explore page being inaccessible when opted-out of trends in web UI (#25716) 2 years ago
                                                                                
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 || '';
  }
});