Skip to content

Commit

Permalink
chore: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Apr 10, 2024
1 parent d3c8bd3 commit 14f1f8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/load-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ function LoadFromUrlDialog({ children }: { children: React.ReactNode }) {
placeholder="https://example.com/ydoc"
onKeyDown={(e) => {
if (e.key === "Enter") {
// Cancel the default action, if needed
e.preventDefault();
handleLoadYDoc();
}
Expand Down
7 changes: 5 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from "path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
import Info from "unplugin-info/vite";
import { defineConfig } from "vite";

// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -12,4 +12,7 @@ export default defineConfig({
"@": path.resolve(__dirname, "./src"),
},
},
build: {
sourcemap: true,
},
});

0 comments on commit 14f1f8c

Please sign in to comment.