Skip to content

Commit 76834b5

Browse files
Fix bug in revision version checking
1 parent 386c8f0 commit 76834b5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@ function translationLayer(div, object) {
1212
warning.innerText = `The major revision version of mathics-threejs-backend is 1, but it was expected to be ${versionArray[0]}. Trying to draw the graphics.`;
1313

1414
div.appendChild(warning);
15-
} else if (parseInt(versionArray[1]) < 1) {
16-
// The code bellow need to be commented in 1.0, 2.0, 3.0, ...
17-
// as the number can't be smaller than 0.
18-
15+
} else if (parseInt(versionArray[1]) > 1) {
1916
const warning = document.createElement('p');
2017

2118
warning.style.color = 'yellow';
22-
warning.innerText = `The minor revision version of mathics-threejs-backend is 1, but it was expected to be ${versionArray[1]}. Trying to draw the graphics.`;
19+
warning.innerText = `The minor revision version of mathics-threejs-backend is 1, but it was expected to be at least ${versionArray[1]}. Trying to draw the graphics.`;
2320

2421
div.appendChild(warning);
2522
}

0 commit comments

Comments
 (0)