We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d4aa4fd + 8fa13b5 commit d449012Copy full SHA for d449012
1 file changed
web/src/components/IFrame.tsx
@@ -37,9 +37,10 @@ export default function IFrame(props: Props): JSX.Element {
37
return
38
}
39
40
- if (a.href.trim() === '') {
41
- // ignore empty links, may be handled with js internally,
42
- // so we'll ignore it. Will inevitably cause the user to have to click back
+ const href = a.getAttribute('href') ?? ''
+ if (href.trim() === '') {
+ // ignore empty links, may be handled with js internally.
43
+ // Will inevitably cause the user to have to click back
44
// multiple times to get back to the previous page.
45
46
0 commit comments