Skip to content

Commit

Permalink
MDL-43247 SCORM: use window.closed property instead of window.opener …
Browse files Browse the repository at this point in the history
…for IE
  • Loading branch information
danmarsden committed Jan 23, 2014
1 parent ed8eebe commit ed3d1ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ed3d1ee

Please sign in to comment.