Skip to content

Commit

Permalink
Fixed concrete version number issue, leading to incorrect CSS class a…
Browse files Browse the repository at this point in the history
…pplied.
  • Loading branch information
michaelsharman committed Feb 24, 2025
1 parent 91bce46 commit e493a6a
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/assessment/core.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/assessment/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/authoring/core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/authoring/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '2.22.0';
export const version = '2.22.1';
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@caspingus/lt",
"version": "2.22.0",
"version": "2.22.1",
"description": "A utility library of helpers and tools for working with Learnosity APIs.",
"author": "michael@learnosity.com",
"license": "MIT",
Expand Down
5 changes: 3 additions & 2 deletions src/authoring/extensions/ui/imageUploader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,9 @@ function checkUploadFormUri(uri) {
*/
function checkAppVersion() {
if (state.classNamePrefix === null) {
const appVersion = parseFloat(diagnostics().versions.concrete.replace(/^v/, '').replace(/\./g, ''));
state.classNamePrefix = appVersion >= 22271 ? 'author-' : '';
const appVersion = parseFloat(diagnostics().versions.concrete.replace(/^v/, '').split('.').slice(0, 2).join(''));

state.classNamePrefix = appVersion >= 2227 ? 'author-' : '';
}
}

Expand Down

0 comments on commit e493a6a

Please sign in to comment.