Browse Source

Merge pull request #1144 from 0x9be00ff1/fix-mask-download

fix: mask download not working #1119
Yifei Zhang 1 year ago
parent
commit
b0cd8579f1
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"