Skip to content

Commit

Permalink
make it compatible with SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin committed Jul 12, 2024
1 parent 4dff5d7 commit 3b362b2
Show file tree
Hide file tree
Showing 4 changed files with 233 additions and 11 deletions.
239 changes: 230 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.30.0",
"isomorphic-dompurify": "^2.13.0",
"js-yaml": "^4.1.0",
"minimist": "^1.2.8",
"prettier": "^2.8.0",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/CodeBlock.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { afterUpdate } from "svelte";
import CopyToClipBoardBtn from "./CopyToClipBoardBtn.svelte";
import DOMPurify from "dompurify";
import DOMPurify from "isomorphic-dompurify";
export let code = "";
export let lang = "";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/chat/ChatMessage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import Modal from "../Modal.svelte";
import ToolUpdate from "./ToolUpdate.svelte";
import { useSettingsStore } from "$lib/stores/settings";
import DOMPurify from "dompurify";
import DOMPurify from "isomorphic-dompurify";
function sanitizeMd(md: string) {
let ret = md
Expand Down

0 comments on commit 3b362b2

Please sign in to comment.