fix: test break caused by #12273 (#12322)

* fix

* fix: websocket stream origin
This commit is contained in:
Nya Candy
2023-11-13 15:39:54 +08:00
committed by GitHub
parent 31174d6b79
commit 1361bdfbf2
2 changed files with 4 additions and 4 deletions

View File

@@ -11,8 +11,8 @@ const siteName = document.querySelector<HTMLMetaElement>('meta[property="og:site
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') ?? 'en-US';
export const langs = _LANGS_;
const preParseLocale = miLocalStorage.getItem('locale');