Skip to content

Commit

Permalink
Fix: Close loading screen via router.hideLoading() (fixes #291) (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
swashbuck authored Sep 11, 2023
1 parent b4a542c commit 0fe5539
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/scorm/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -600,7 +601,7 @@ class ScormWrapper {
if (!Notify.isOpen) {
// prevent course load execution
Wait.begin();
$('.js-loading').hide();
router.hideLoading();

Notify.popup({
_isCancellable: false,
Expand Down

0 comments on commit 0fe5539

Please sign in to comment.