Skip to content

Commit

Permalink
Merge pull request #174 from appwrite/fix-4732-fix-web-code-sample
Browse files Browse the repository at this point in the history
Fix web code sample
  • Loading branch information
TorstenDittmann authored Nov 22, 2022
2 parents d0c5079 + 08aa2b5 commit 81f87d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
let method: Method = Method.NPM;
const example1 = `import { Appwrite } from 'appwrite';`;
const example2 = `<script src="https://cdn.jsdelivr.net/npm/appwrite@${$versions['client-web']}" />`;
const example1 = `import { Client } from 'appwrite';`;
const example2 =
`<script src="https://cdn.jsdelivr.net/npm/appwrite@${$versions['client-web']}" />
<script>
const { Client } = Appwrite;
</script` + `>`; // Prevent svelte from processing the closing script tag
</script>

<WizardStep>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import { sdkForProject } from '$lib/stores/sdk';
const { endpoint, project } = sdkForProject.client.config;
const code = `const appwrite = new Appwrite();
const code = `const client = new Client();
appwrite
client
.setEndpoint('${endpoint}')
.setProject('${project}');`;
</script>
Expand Down

1 comment on commit 81f87d2

@vercel
Copy link

@vercel vercel bot commented on 81f87d2 Nov 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.