MDL-43247 Scorm: Fix for undefined js variable when popup is blocked.
This commit is contained in:
@@ -59,6 +59,7 @@ M.mod_scormform.init = function(Y) {
|
||||
// this shouldn't happen as the pop-up here is launched on user action but good to make sure.
|
||||
setTimeout(function() {
|
||||
if (!winobj) {
|
||||
var scormintro = Y.one('#intro');
|
||||
scormintro.setHTML(M.str.scorm.popupsblocked);
|
||||
}}, 800);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user