Javascript in storyline on mobile devices

I have written some custom javascript and placed it on the last slide of my storyline project.  It works perfectly from my desktop computer (tells my database that the user has completed the presentation) but does not work on a mobile device (iPad).  Any ideas?

It executes when the timeline of the last slide starts:

if(window && window.parent) {

2 Replies