MDL-43247 SCORM: use window.closed property instead of window.opener for IE
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user