From be3ca5cdebcaf17e6df9a3b841da5a09d110fbcd Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Mon, 9 Oct 2023 07:07:37 +0200 Subject: [PATCH] fix: trigger iframe load fallback outside of test mode Signed-off-by: Tilman Vatteroth --- .../use-force-render-page-url-on-iframe-load-callback.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frontend/src/components/common/renderer-iframe/hooks/use-force-render-page-url-on-iframe-load-callback.ts b/frontend/src/components/common/renderer-iframe/hooks/use-force-render-page-url-on-iframe-load-callback.ts index 339f46b29..f9712f7b7 100644 --- a/frontend/src/components/common/renderer-iframe/hooks/use-force-render-page-url-on-iframe-load-callback.ts +++ b/frontend/src/components/common/renderer-iframe/hooks/use-force-render-page-url-on-iframe-load-callback.ts @@ -9,7 +9,6 @@ import { useEditorToRendererCommunicator } from '../../../editor-page/render-con import type { RefObject } from 'react' import { useCallback, useEffect, useMemo, useRef } from 'react' import { useTimeoutFn } from '../../../../hooks/common/use-timeout-fn' -import { isTestMode } from '../../../../utils/test-modes' const log = new Logger('IframeLoader') @@ -68,9 +67,6 @@ export const useForceRenderPageUrlOnIframeLoadCallback = ( ) useEffect(() => { - if (!isTestMode) { - return - } startForceTimer() return () => stopForceTimer() }, [startForceTimer, stopForceTimer])