pipwerks / scorm-api-wrapper

The pipwerks SCORM API Wrapper
http://pipwerks.com
357 stars 125 forks source link

error accessing win.top.opener #19

Closed jheinstein closed 9 years ago

jheinstein commented 9 years ago

I was getting an error on IE11 (but not Chrome or Firefox) that win.top.opener is undefined.

This is happening on line 119 :

if(!API && win.top.opener && win.top.opener.document) {

This is fixed by adding an additional check for win.top

if(!API && win.top && win.top.opener && win.top.opener.document) {

pipwerks commented 9 years ago

window.top is a standard property, it should always be available. Curious that it's not working in IE11.

I have updated the src to check, just in case. Thanks