Skip to content

Commit

Permalink
icon
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisjofrank committed Nov 10, 2024
1 parent 8231ae5 commit 1bd3fe6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/icon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<title>Code Editor</title>
</head>
<body>
<div id="root"></div>
Expand Down
Binary file added client/public/icon.ico
Binary file not shown.
4 changes: 3 additions & 1 deletion client/src/pages/ViewCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export default function ViewCode() {
);
};

Prism.highlightAll();
useEffect(() => {
Prism.highlightAll();
}, [code]);

return (
<div className="editor">
Expand Down

0 comments on commit 1bd3fe6

Please sign in to comment.