How to fix
Replace the problem line with the new one:
.prop('href', element.src)
Description
The element is a HTMLIFrameElement, it does not have the prop() method, but had the src property.
Replace the problem line with the new one:
.prop('href', element.src)
The element is a HTMLIFrameElement, it does not have the prop() method, but had the src property.