From 0fe5539d41e332eadcdcc1a6915efadbd0f8b488 Mon Sep 17 00:00:00 2001 From: Brad Simpson Date: Mon, 11 Sep 2023 03:09:07 -0600 Subject: [PATCH] Fix: Close loading screen via router.hideLoading() (fixes #291) (#292) --- js/scorm/wrapper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/scorm/wrapper.js b/js/scorm/wrapper.js index 9b88202f..818cb8ff 100644 --- a/js/scorm/wrapper.js +++ b/js/scorm/wrapper.js @@ -6,6 +6,7 @@ import pipwerks from 'libraries/SCORM_API_wrapper'; import Logger from './logger'; import ScormError from './error'; import Connection from './Connection'; +import router from 'core/js/router'; const { CLIENT_COULD_NOT_CONNECT, @@ -600,7 +601,7 @@ class ScormWrapper { if (!Notify.isOpen) { // prevent course load execution Wait.begin(); - $('.js-loading').hide(); + router.hideLoading(); Notify.popup({ _isCancellable: false,