Skip to content

Commit b26ea37

Browse files
committed
Check for win.top
Per issue # 19
1 parent 6d65816 commit b26ea37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JavaScript/SCORM_API_wrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/* ===========================================================
44
55
pipwerks SCORM Wrapper for JavaScript
6-
v1.1.20150327
6+
v1.1.20150614
77
88
Created by Philip Hutchison, January 2008-2014
99
https://github.com/pipwerks/scorm-api-wrapper
@@ -187,7 +187,7 @@ pipwerks.SCORM.API.get = function(){
187187

188188
//Special handling for Plateau
189189
//Thanks to Joseph Venditti for the patch
190-
if(!API && win.top.opener && win.top.opener.document) {
190+
if(!API && win.top && win.top.opener && win.top.opener.document) {
191191
API = find(win.top.opener.document);
192192
}
193193

0 commit comments

Comments
 (0)