Tbh, I didn't revert to test how or why Colin. I just noticed the function had been moved outside of it's iife and it all made sense. And the fix works!
Tbh, I didn't revert to test how or why Colin. I just noticed the function had been moved outside of it's iife and it all made sense. And the fix works!