Skip to content

Commit 315b983

Browse files
committed
Fix webview error not appearing due to messages from previous media item
1 parent b1416f7 commit 315b983

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/metastream-app/src/components/Webview.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ export class Webview extends Component<Props, State> {
118118

119119
if (action.type === 'activity') {
120120
this.onIFrameActivity()
121-
} else {
122-
// if we receive a message from the frame, we know we were able to connect
123-
// ignore 'activity' since it's delayed
121+
} else if (action.type === 'load-script') {
122+
// 'load-script' runs during webview initialization so we know the page
123+
// has started loading at this point
124124
this.clearNavigateTimeout()
125125
}
126126

0 commit comments

Comments
 (0)