Skip to content

Commit

Permalink
Revert "feat: add chatwoot to our website" (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre committed Jun 7, 2023
1 parent 17c3ceb commit 14480df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 73 deletions.
19 changes: 1 addition & 18 deletions src/components/header.svelte
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
<script lang="ts">
<script>
import Logo from './logo.svelte';
if (typeof window !== 'undefined') {
const BASE_URL = 'https://app.chatwoot.com';
const g = document.createElement('script');
const s = document.getElementsByTagName('script')[0];
g.src = BASE_URL + '/packs/js/sdk.js';
g.defer = true;
g.async = true;
s.parentNode?.insertBefore(g, s);
g.onload = function () {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(window as any).chatwootSDK.run({
websiteToken: 'm94Z8YzguKbGc1XnowaNjHfM',
baseUrl: BASE_URL
});
};
}
</script>

<header>
Expand Down
55 changes: 0 additions & 55 deletions src/routes/(default)/privacy/+page.svelte

This file was deleted.

0 comments on commit 14480df

Please sign in to comment.