From: Stephen Cameron Date: Fri, 16 Mar 2018 15:18:16 +0000 (+0100) Subject: Done #1994 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=895dbe0af7b6f6ad8c9ac1e340ed1c7fcb529fbd;p=fluidbook-html5.git Done #1994 @0.25 --- diff --git a/js/libs/scorm/scorm.js b/js/libs/scorm/scorm.js index 4365ec89..29ce4c96 100644 --- a/js/libs/scorm/scorm.js +++ b/js/libs/scorm/scorm.js @@ -40,7 +40,8 @@ function initScormEvents() { function scormComplete() { setScormValue("cmi.core.lesson_status", "completed"); - window.close(); + //window.open(location, '_self').close(); // IE 11 confirmation dialog bypass + top.close(); // This should work better for IE and in contexts where window isn't available doLMSFinish(); } @@ -53,4 +54,4 @@ function setScormValue(elementName, value) { var result = doLMSSetValue(elementName, value); doLMSCommit(); return result; -} \ No newline at end of file +}