From ed3d1ee60d1e48ade21438fd98fef2deb63ecb5f Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 23 Jan 2014 20:38:01 +1300 Subject: [PATCH] MDL-43247 SCORM: use window.closed property instead of window.opener for IE --- mod/scorm/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scorm/view.js b/mod/scorm/view.js index 37016cf7f86..51c19d17065 100644 --- a/mod/scorm/view.js +++ b/mod/scorm/view.js @@ -45,7 +45,7 @@ M.mod_scormform.init = function(Y) { var scormunload = function () { // Onunload is called multiple times in the SCORM window - we only want to handle when it is actually closed. setTimeout(function() { - if (!winobj.opener) { + if (winobj.closed) { // Redirect the parent window to the course homepage. parent.window.location = course_url; } -- 2.43.0