chore: upgrade snjs (#985)

This commit is contained in:
Mo
2022-04-18 13:21:41 -05:00
committed by GitHub
parent a9bab0938b
commit b6eeaea516
8 changed files with 124 additions and 120 deletions

View File

@@ -119,7 +119,11 @@ export const ComponentView: FunctionalComponent<IProps> = observer(
const contentWindow = iframe.contentWindow as Window
excessiveLoadingTimeout.current && clearTimeout(excessiveLoadingTimeout.current)
componentViewer.setWindow(contentWindow).catch(console.error)
try {
componentViewer.setWindow(contentWindow)
} catch (error) {
console.error(error)
}
setTimeout(() => {
setIsLoading(false)