Browse Source

fix: mask download not working

Zhenyu Zhu 1 year ago
parent
commit
ba0753c418
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/components/mask.tsx

+ 3 - 0
app/components/mask.tsx

@@ -368,6 +368,9 @@ export function MaskPage() {
                 text={Locale.Mask.EditModal.Download}
                 key="export"
                 bordered
+                onClick={() =>
+                  downloadAs(JSON.stringify(editingMask), "mask.json")
+                }
               />,
               <IconButton
                 key="copy"