chore: update support channels (#27188)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -115,10 +115,10 @@ export type IOtherOptions = {
|
||||
}
|
||||
|
||||
function jumpTo(url: string) {
|
||||
if(!url)
|
||||
if (!url)
|
||||
return
|
||||
const targetPath = new URL(url, globalThis.location.origin).pathname
|
||||
if(targetPath === globalThis.location.pathname)
|
||||
if (targetPath === globalThis.location.pathname)
|
||||
return
|
||||
globalThis.location.href = url
|
||||
}
|
||||
@@ -136,7 +136,7 @@ const WBB_APP_LOGIN_PATH = '/webapp-signin'
|
||||
function requiredWebSSOLogin(message?: string, code?: number) {
|
||||
const params = new URLSearchParams()
|
||||
// prevent redirect loop
|
||||
if(globalThis.location.pathname === WBB_APP_LOGIN_PATH)
|
||||
if (globalThis.location.pathname === WBB_APP_LOGIN_PATH)
|
||||
return
|
||||
|
||||
params.append('redirect_url', encodeURIComponent(`${globalThis.location.pathname}${globalThis.location.search}`))
|
||||
|
||||
Reference in New Issue
Block a user