diff --git a/HISTORY.md b/HISTORY.md
index bfced6ac..34787bbe 100755
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -47,6 +47,7 @@
* gui: distinguish between embedded blocks code and raw data in PNGs
* morphic: fixed bulk-drop of images
* German translation update for "get blocks" and "get data"
+* store: fixed storing costume metadata in projects and sprite
### 2022-04-25
* morphic, gui, objects, extensions: renamed "embeddedCode" property of costumes to "embeddedData"
diff --git a/snap.html b/snap.html
index 283869a3..a82a687e 100755
--- a/snap.html
+++ b/snap.html
@@ -30,7 +30,7 @@
-
+
diff --git a/src/store.js b/src/store.js
index 36ccf3c7..16cd6768 100644
--- a/src/store.js
+++ b/src/store.js
@@ -63,7 +63,7 @@ Project*/
// Global stuff ////////////////////////////////////////////////////////
-modules.store = '2022-April-20';
+modules.store = '2022-April-26';
// XML_Serializer ///////////////////////////////////////////////////////
/*
@@ -1653,9 +1653,9 @@ SnapSerializer.prototype.loadValue = function (model, object) {
v.version = +new Date();
if (Object.prototype.hasOwnProperty.call(
model.attributes,
- 'code'
+ 'embed'
)) {
- v.code = model.attributes.code;
+ v.embeddedData = model.attributes.embed;
}
if (typeof v.loaded === 'function') {
v.loaded();
@@ -1989,7 +1989,8 @@ Costume.prototype.toXML = function (serializer) {
this.rotationCenter.y,
this instanceof SVG_Costume ? this.contents.src
: normalizeCanvas(this.contents).toDataURL('image/png'),
- this.code ? serializer.format(' code="@"', this.code) : ''
+ this.embeddedData ? serializer.format(' embed="@"', this.embeddedData)
+ : ''
);
};