(url: string)
| 172 | } |
| 173 | |
| 174 | const toUrl = (url: string) => { |
| 175 | const { origin, pathname } = window.location |
| 176 | const redirect = getCurrentRouter() |
| 177 | window.location.href = |
| 178 | origin + pathname + url + (redirect?.includes('chatPreview') ? `#${redirect}` : '') |
| 179 | } |
| 180 | |
| 181 | export const origin_mapping: { [key: number]: string } = { |
| 182 | 1: 'cas', |
no test coverage detected