@meta2d/core 1.0.28 → 1.0.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meta2d/core",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -36,4 +36,4 @@
36
36
  "access": "public"
37
37
  },
38
38
  "gitHead": "78f2a53ca1839c89b56e2e498d17ba4eb987ad14"
39
- }
39
+ }
@@ -638,7 +638,7 @@ var Canvas = /** @class */ (function () {
638
638
  }
639
639
  }
640
640
  catch (e) { }
641
- if (!!obj) return [3 /*break*/, 3];
641
+ if (!(!obj && !(this.addCaches && this.addCaches.length))) return [3 /*break*/, 3];
642
642
  files = event.dataTransfer.files;
643
643
  if (!(files.length && files[0].type.match('image.*'))) return [3 /*break*/, 2];
644
644
  isGif = files[0].type === 'image/gif';