Skip to content

Commit b7f256e

Browse files
committed
Merge pull request pipwerks#12 from danielghost/master
Amend to look for the API in the current window first. Whilst this isn't...
2 parents 7ec212c + 03a8958 commit b7f256e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/JavaScript/SCORM_API_wrapper.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ pipwerks.SCORM.API.get = function(){
175175
find = scorm.API.find,
176176
trace = pipwerks.UTILS.trace;
177177

178-
if(win.parent && win.parent != win){
178+
API = find(win);
179+
180+
if(!API && win.parent && win.parent != win){
179181
API = find(win.parent);
180182
}
181183

0 commit comments

Comments
 (0)