davidjbradshaw/iframe-resizer

window.jQuery is undefined

rguest20 opened this issue · 0 comments

Describe the bug
iframe resizer appears to be trying to pull in jQuery where it is not enabled. It appears that the issue is the line of code:
if (window.jQuery) {
createJQueryPublicMethod(window.jQuery)
}

which should be something more like:

if (typeof window.jQuery !== "undefined") {
createJQueryPublicMethod(window.jQuery)
}

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'cityfibre.com'
  2. Search for a postcode using business checker
  3. Check console

Expected behavior
No errors.

Additional context
Add any other context about the problem here.