Skip to content

Commit

Permalink
Revert "remove sso iframe limit."
Browse files Browse the repository at this point in the history
This reverts commit 29ed633.
  • Loading branch information
GarfieldDai committed Jun 26, 2024
1 parent 20cadbd commit b4bbd16
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions web/app/(shareLayout)/chatbot/[token]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ import React, { useEffect } from 'react'
import cn from 'classnames'
import EmbeddedChatbot from '@/app/components/base/chat/embedded-chatbot'
import Loading from '@/app/components/base/loading'
import { fetchSystemFeatures } from '@/service/share'
import LogoSite from '@/app/components/base/logo/logo-site'

const Chatbot = () => {
const [isSSOEnforced, setIsSSOEnforced] = React.useState(false)
const [loading, setLoading] = React.useState(false)
const [isSSOEnforced, setIsSSOEnforced] = React.useState(true)
const [loading, setLoading] = React.useState(true)

useEffect(() => {
// fetchSystemFeatures().then((res) => {
// setIsSSOEnforced(res.sso_enforced_for_web)
// setLoading(false)
// })
fetchSystemFeatures().then((res) => {
setIsSSOEnforced(res.sso_enforced_for_web)
setLoading(false)
})
}, [])

return (
Expand Down

0 comments on commit b4bbd16

Please sign in to comment.