Skip to content

Conversation

@danielghost
Copy link
Contributor

Fixes #344.

Fix

  • Resetting location via an empty string may be ignored in SCORM 2004 - replaced with "null".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

}

setLessonLocation(location) {
if (location.trim() === '') location = 'null';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (location.trim() === '') location = 'null';
if (!location?.trim()) location = 'null';

Slightly more resistant to any non-string falsey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Needs Reviewing

Development

Successfully merging this pull request may close these issues.

Resetting location may be ignored in SCORM 2004

5 participants