@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/dist/code-editor/svg/SvgCodeEditorWindow.js +2 -2
- package/dist/code-editor/svg/SvgCodeEditorWindow.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +2 -2
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/code-editor/svg/SvgCodeEditorWindow.tsx +2 -2
package/package.json
CHANGED
|
@@ -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")
|
|
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: "
|
|
152
|
+
content: new File([this.code], fileName, { type: "image/svg+xml"}),
|
|
153
153
|
folder: path.join("/")
|
|
154
154
|
});
|
|
155
155
|
|