| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | import { useEffect, useState } from 'react'; |
| 2 | -import Raven from '../lib/Raven'; | |
| 3 | 2 | |
| 4 | 3 | const IFRAME_DISPLAY_TIMEOUT = 5000; |
| 5 | 4 | |
| 6 | 5 | export function useIframeNotRendered(app: string) { |
| @@ -8,11 +7,8 @@ | ||
| 8 | 7 | useEffect(() => { |
| 9 | 8 | const timer = setTimeout(() => { |
| 10 | 9 | const iframe = document.getElementById(app); |
| 11 | 10 | if (!iframe) { |
| 12 | - Raven.captureException(new Error(`Leadin Iframe blocked`), { | |
| 13 | - fingerprint: ['IFRAME_SETUP_ERROR'], | |
| 14 | - }); | |
| 15 | 11 | setIframeNotRendered(true); |
| 16 | 12 | } |
| 17 | 13 | }, IFRAME_DISPLAY_TIMEOUT); |
| 18 | 14 | |