@social-mail/social-mail-client 1.8.334 → 1.8.335

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": "@social-mail/social-mail-client",
3
- "version": "1.8.334",
3
+ "version": "1.8.335",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -109,7 +109,7 @@ export default class SvgCodeEditorWindow extends PopupWindowPage<{
109
109
  async onDrop(_, e: CustomEvent) {
110
110
  const file = e.detail.files[0];
111
111
  if (file) {
112
- if(file.type.startsWith("image/svg") || file.type.startsWith("text/svg")) {
112
+ if(file.type.startsWith("image/svg+xml")) {
113
113
  this.code = await file.text();
114
114
  this.svgContainer.srcdoc = this.code;
115
115
  this.textModel.setValue(this.code);
@@ -149,7 +149,7 @@ export default class SvgCodeEditorWindow extends PopupWindowPage<{
149
149
 
150
150
  await this.cloudFileService.saveFile({
151
151
  parentID: this.parameters.folderID,
152
- content: new File([this.code], fileName, { type: "text/svg"}),
152
+ content: new File([this.code], fileName, { type: "image/svg+xml"}),
153
153
  folder: path.join("/")
154
154
  });
155
155