Skip to content

Commit

Permalink
Merge pull request #26 from gary-Shen/fix/gist
Browse files Browse the repository at this point in the history
fix: export filename in gist file
  • Loading branch information
gary-Shen authored Jun 27, 2023
2 parents 5ff6f32 + e39e75b commit 71f66f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/partials/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Header({ onEdit, editable }: HeaderProps) {
const handleExport = useCallback(() => {
download(
'data:application/json;charset=UTF-8,' + encodeURIComponent(JSON.stringify(settings)),
'candi-tab-settings.json',
settings.gist?.fileName ?? 'candi-tab-settings.json',
);
}, [settings]);

Expand Down

1 comment on commit 71f66f2

@vercel
Copy link

@vercel vercel bot commented on 71f66f2 Jun 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

candi-tab – ./

candi-tab-gary-shen.vercel.app
candi-tab-git-master-gary-shen.vercel.app
candi-tab.vercel.app

Please sign in to comment.