Merge tag '2023.11.1' into merge-upstream

This commit is contained in:
riku6460
2023-11-17 20:13:05 +09:00
82 changed files with 2873 additions and 1843 deletions

View File

@@ -5,14 +5,14 @@
import { miLocalStorage } from '@/local-storage.js';
const address = new URL(location.href);
const address = new URL(document.querySelector<HTMLMetaElement>('meta[property="instance_url"]')?.content || location.href);
const siteName = document.querySelector<HTMLMetaElement>('meta[property="og:site_name"]')?.content;
export const host = address.host;
export const hostname = address.hostname;
export const url = address.origin;
export const apiUrl = url + '/api';
export const wsUrl = url.replace('http://', 'ws://').replace('https://', 'wss://') + '/streaming';
export const apiUrl = location.origin + '/api';
export const wsOrigin = location.origin;
export const lang = miLocalStorage.getItem('lang') ?? 'ja-JP';
export const langs = _LANGS_;
const preParseLocale = miLocalStorage.getItem('locale');