You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/index.js
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,11 @@ function translationLayer(div, object) {
12
12
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.`;
13
13
14
14
div.appendChild(warning);
15
-
}elseif(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
+
}elseif(parseInt(versionArray[1])>1){
19
16
constwarning=document.createElement('p');
20
17
21
18
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.`;
0 commit comments