mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
fix: trigger iframe load fallback outside of test mode
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
0d9131cb68
commit
be3ca5cdeb
1 changed files with 0 additions and 4 deletions
|
@ -9,7 +9,6 @@ import { useEditorToRendererCommunicator } from '../../../editor-page/render-con
|
||||||
import type { RefObject } from 'react'
|
import type { RefObject } from 'react'
|
||||||
import { useCallback, useEffect, useMemo, useRef } from 'react'
|
import { useCallback, useEffect, useMemo, useRef } from 'react'
|
||||||
import { useTimeoutFn } from '../../../../hooks/common/use-timeout-fn'
|
import { useTimeoutFn } from '../../../../hooks/common/use-timeout-fn'
|
||||||
import { isTestMode } from '../../../../utils/test-modes'
|
|
||||||
|
|
||||||
const log = new Logger('IframeLoader')
|
const log = new Logger('IframeLoader')
|
||||||
|
|
||||||
|
@ -68,9 +67,6 @@ export const useForceRenderPageUrlOnIframeLoadCallback = (
|
||||||
)
|
)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isTestMode) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
startForceTimer()
|
startForceTimer()
|
||||||
return () => stopForceTimer()
|
return () => stopForceTimer()
|
||||||
}, [startForceTimer, stopForceTimer])
|
}, [startForceTimer, stopForceTimer])
|
||||||
|
|
Loading…
Reference in a new issue