Browse Source

ref(replay): remove dom alert for mobile replays (#67700)

Closes https://github.com/getsentry/sentry/issues/67693


<img width="955" alt="SCR-20240326-iidf"
src="https://github.com/getsentry/sentry/assets/56095982/3e2bbe4a-ac28-492a-9212-d77036ead8fb">
Michelle Zhang 11 months ago
parent
commit
0522fabfc6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      static/app/components/replays/replayPlayer.tsx

+ 2 - 1
static/app/components/replays/replayPlayer.tsx

@@ -66,6 +66,7 @@ function BasePlayerRoot({className, overlayContent, isPreview = false}: Props) {
     isBuffering,
     isFetching,
     isFinished,
+    isVideoReplay,
   } = useReplayContext();
 
   const windowEl = useRef<HTMLDivElement>(null);
@@ -129,7 +130,7 @@ function BasePlayerRoot({className, overlayContent, isPreview = false}: Props) {
         <div ref={viewEl} className={className} />
         {fastForwardSpeed ? <PositionedFastForward speed={fastForwardSpeed} /> : null}
         {isBuffering ? <PositionedBuffering /> : null}
-        {isPreview ? null : <PlayerDOMAlert />}
+        {isPreview || isVideoReplay ? null : <PlayerDOMAlert />}
         {isFetching ? <PositionedLoadingIndicator /> : null}
       </StyledNegativeSpaceContainer>
     </Fragment>