Skip to content

Commit

Permalink
Merge pull request #61 from fingerprintjs/docs/update-deprecated-impo…
Browse files Browse the repository at this point in the history
…rt-in-readme-snippets

docs(README): replace deprecated imports in code examples INTER-630
  • Loading branch information
JuroUhlar authored May 21, 2024
2 parents 133145d + 4dfdd48 commit 54663e6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,21 @@ To get your API key and get started, see the [Quick start guide in our documenta
```svelte
// App.svelte
<script>
import { FpjsProvider, /* defaultEndpoint, defaultScriptUrlPattern */ } from '@fingerprintjs/fingerprintjs-pro-svelte'
import { FpjsProvider, FingerprintJSPro } from '@fingerprintjs/fingerprintjs-pro-svelte'
import VisitorData from './VisitorData.svelte'
const options = {
loadOptions: {
apiKey: '<YOUR_API_KEY>',
// region: 'eu',
// endpoint: ['metrics.yourwebsite.com', defaultEndpoint],
// scriptUrlPattern: ['metrics.yourwebsite.com/agent-path', defaultScriptUrlPattern],
endpoint: [
// "https://metrics.yourwebsite.com",
FingerprintJSPro.defaultEndpoint
],
scriptUrlPattern: [
// "https://metrics.yourwebsite.com/web/v<version>/<apiKey>/loader_v<loaderVersion>.js",
FingerprintJSPro.defaultScriptUrlPattern
],
// region: 'eu',
},
};
</script>
Expand Down

0 comments on commit 54663e6

Please sign in to comment.