icn3d 3.25.2 → 3.25.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/icn3d.module.js CHANGED
@@ -16192,7 +16192,7 @@ class SetHtml {
16192
16192
  let matchedStrState = "Start of state file======\n";
16193
16193
  let posState = imageStr.indexOf(matchedStrState);
16194
16194
  if(pos == -1 && posState == -1) {
16195
- alert('Please load a PNG image saved by clicking "Save Datas > PNG Image" in the Data menu...');
16195
+ alert('Please load a PNG image saved by clicking the menu "File > Save File > iCn3D PNG Image"...');
16196
16196
  }
16197
16197
  else if(pos != -1) {
16198
16198
  let url = imageStr.substr(pos + matchedStr.length);
@@ -67216,7 +67216,7 @@ class SaveFile {
67216
67216
  if(me.utilsCls.isIE()) {
67217
67217
  blob = ic.renderer.domElement.msToBlob();
67218
67218
 
67219
- if(bAddURL && typeof(blob) == 'Blob') {
67219
+ if(bAddURL) {
67220
67220
  let reader = new FileReader();
67221
67221
  reader.onload = function(e) {
67222
67222
  let arrayBuffer = e.target.result; // or = reader.result;
@@ -67242,7 +67242,7 @@ class SaveFile {
67242
67242
  }
67243
67243
  else {
67244
67244
  ic.renderer.domElement.toBlob(function(data) {
67245
- if(bAddURL && typeof(blob) == 'data') {
67245
+ if(bAddURL) {
67246
67246
  let reader = new FileReader();
67247
67247
  reader.onload = function(e) {
67248
67248
  let arrayBuffer = e.target.result; // or = reader.result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.25.2",
3
+ "version": "3.25.3",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {