Skip to content

Commit

Permalink
fix(viewer): 🐛 Attempt to fix loading issue in iframe safari
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 4, 2022
1 parent d13ca0f commit 93639c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/viewer/layouts/TypebotPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ export const TypebotPage = ({
const [resultId, setResultId] = useState<string | undefined>()

// Workaround for react-frame-component bug (https://github.com/ryanseddon/react-frame-component/pull/207)
// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(() => {
if (showTypebot) return
setShowTypebot(true)
}, [])
})

const initializeResult = async (variables: VariableWithValue[]) => {
const resultIdFromSession = getExistingResultFromSession()
Expand Down

2 comments on commit 93639c1

@vercel
Copy link

@vercel vercel bot commented on 93639c1 Mar 4, 2022

@vercel
Copy link

@vercel vercel bot commented on 93639c1 Mar 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
builder-v2-typebot-io.vercel.app

Please sign in to comment.