Skip to content

Commit 0117c8e

Browse files
authored
Merge pull request #803 from TechnologyEnhancedLearning/TD-5238-Fix
TD-5238-elearning resource page doesn't refresh properly upon completing elearning
2 parents bb4ec22 + a2e9a1b commit 0117c8e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

LearningHub.Nhs.WebUI/Scripts/vuesrc/resource/ResourceContent.vue

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -722,14 +722,6 @@
722722
async launchScorm() {
723723
var targetWin;
724724
var targetWinName = "lhContent" + this.resourceItem.resourceId;
725-
// Use a placeholder window to avoid popup blockers
726-
targetWin = window.open("about:blank", targetWinName, "location=0,menubar=0,resizable=0,width=" + this.resourceItem.scormDetails.popupWidth + ",height=" + this.resourceItem.scormDetails.popupHeight);
727-
728-
// If the pop-up was blocked
729-
if (!targetWin) {
730-
alert("Please allow pop-ups to view this content.");
731-
return;
732-
}
733725
var activeContent = await userData.getActiveContent();
734726
735727
if (activeContent.filter(ac => ac.resourceId === this.resourceItem.resourceId).length > 0) {

0 commit comments

Comments
 (0)