Skip to content

Commit 7c83da9

Browse files
fix: typo scrom to scorm
1 parent 92b9b79 commit 7c83da9

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Minimal examples for SCORM1.2 and SCORM2004 for tested LMS:
268268
| [OPAL](https://www.bps-system.de/opal-lernplattform/) | `liaex -i course/README.md -f scorm1.2 --scorm-masteryScore 80 --scorm-embed` |
269269
| [open edX](https://openedx.org) | `liaex -i course/README.md -f scorm1.2 --scorm-masteryScore 80 --scorm-embed` |
270270
| [OpenOlat](https://www.openolat.com) | `liaex -i course/README.md -f scorm1.2 --scorm-masteryScore 80 --scorm-embed` |
271-
| [scrom.cloud](https://app.cloud.scorm.com) | `liaex -i course/README.md -f scorm2004 --scorm-masteryScore 80 --scorm-iframe` |
271+
| [scorm.cloud](https://app.cloud.scorm.com) | `liaex -i course/README.md -f scorm2004 --scorm-masteryScore 80 --scorm-iframe` |
272272
| | Additionally check: Course Properties >> Compatibility Settings >> Wrap SCO Window with API |
273273
274274

src/export/project.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ export function help() {
103103
)
104104
COLOR.command(
105105
null,
106-
'--project-generate-scrom12',
107-
'SCORM12 and pass additional scrom settings.',
106+
'--project-generate-scorm12',
107+
'SCORM12 and pass additional scorm settings.',
108108
)
109109
COLOR.command(
110110
null,
111-
'--project-generate-scrom2004',
112-
'SCORM2004 and pass additional scrom settings.',
111+
'--project-generate-scorm2004',
112+
'SCORM2004 and pass additional scorm settings.',
113113
)
114114
COLOR.command(
115115
null,
@@ -997,7 +997,7 @@ async function toCard(
997997

998998
// SCORM12
999999
if (repo && argument['project-generate-scorm12']) {
1000-
argument.output = 'assets/scrom12/' + backupOutput
1000+
argument.output = 'assets/scorm12/' + backupOutput
10011001
const asset = argument.output + '.zip'
10021002

10031003
if (
@@ -1091,9 +1091,12 @@ function card(
10911091
let image = ''
10921092
if (img_url) {
10931093
if (!(img_url.startsWith('http:') || img_url.startsWith('https:'))) {
1094-
const fullImageUrl = new URL(img_url, url)
1095-
1096-
img_url = fullImageUrl.toString()
1094+
try {
1095+
const fullImageUrl = new URL(img_url, url)
1096+
img_url = fullImageUrl.toString()
1097+
} catch (e) {
1098+
// url is not a valid base (e.g. empty string); keep img_url as-is
1099+
}
10971100
}
10981101

10991102
image =

0 commit comments

Comments
 (0)