diff --git a/docs/src/components/Preview.svelte b/docs/src/components/Preview.svelte index f608f59f..a241d062 100644 --- a/docs/src/components/Preview.svelte +++ b/docs/src/components/Preview.svelte @@ -4,18 +4,11 @@ export let src = ""; export let framed = false; - import { CodeSnippet, Button, InlineLoading } from "carbon-components-svelte"; + import { CodeSnippet, Button } from "carbon-components-svelte"; import Launch16 from "carbon-icons-svelte/lib/Launch16"; import copy from "clipboard-copy"; import { url, beforeUrlChange } from "@sveltech/routify"; import { theme } from "../store"; - - let success = false; - - $beforeUrlChange(() => { - if (success) success = false; - return true; - });