mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 12:37:55 +00:00
[feature](chat-sdk) optimize
This commit is contained in:
@@ -160,13 +160,6 @@ export function getChartLightenColor(col) {
|
||||
export const isMobile = window.navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i);
|
||||
|
||||
|
||||
export function isProd() {
|
||||
return (
|
||||
window.location.origin.includes('tmeoa.com') ||
|
||||
window.location.hostname === 's2.tencentmusic.com'
|
||||
);
|
||||
}
|
||||
|
||||
export function setToken(token: string) {
|
||||
localStorage.setItem('SUPERSONIC_CHAT_TOKEN', token);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user