diff --git a/src/App.tsx b/src/App.tsx
index 432a350..44c670f 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -38,7 +38,7 @@ function App() {
const handleImportFile = useCallback(() => {
const input = document.createElement('input');
input.type = 'file';
- input.accept = '.json';
+ input.accept = '.yvsnap';
input.onchange = (e) => {
const file = (e.target as HTMLInputElement).files?.[0];
if (file) {
@@ -64,7 +64,7 @@ function App() {
const blob = new Blob([json], { type: 'application/json' });
const url = URL.createObjectURL(blob);
const link = document.createElement('a');
- link.download = `${snap.meta.title || 'canvas'}.json`;
+ link.download = `${snap.meta.title || 'canvas'}.yvsnap`;
link.href = url;
link.click();
URL.revokeObjectURL(url);
diff --git a/src/components/MainScreen.tsx b/src/components/MainScreen.tsx
index 15d834d..6f17156 100644
--- a/src/components/MainScreen.tsx
+++ b/src/components/MainScreen.tsx
@@ -33,7 +33,7 @@ export default function MainScreen({ onOpenEditor }: MainScreenProps) {
const handleImportFile = () => {
const input = document.createElement('input');
input.type = 'file';
- input.accept = '.json';
+ input.accept = '.yvsnap';
input.onchange = (e) => {
const file = (e.target as HTMLInputElement).files?.[0];
if (file) {
@@ -101,7 +101,7 @@ export default function MainScreen({ onOpenEditor }: MainScreenProps) {
Open an existing .json project file
+Open an existing .yvsnap project file