You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The examples provided in the documentation may generate errors. Here is a working example of how to use in a browser such as Firefox. This example ensures the script does not run until after the Body has loaded since the font detector script relies on the Body element.
document.addEventListener('readystatechange', event => {
// When window loaded ( external resources are loaded too- `css`,`src`, etc...)
if (event.target.readyState === "complete") {
// in a browser, when using a script tag:
const ClientJS = window.ClientJS;
// Create a new ClientJS object
const client = new ClientJS();
// Get the client's fingerprint id
const fingerprint = client.getFingerprint();
// Print the 32bit hash id to the console
console.log(fingerprint);
}
});
</script>
``
The text was updated successfully, but these errors were encountered:
The examples provided in the documentation may generate errors. Here is a working example of how to use in a browser such as Firefox. This example ensures the script does not run until after the Body has loaded since the font detector script relies on the Body element.
``
<script type="text/javascript" src="javascript/client.base.min.js">
/* Credit to https://github.com/JackSpirou/ClientJS?tab=readme-ov-file#bundles */
</script>
<script type="text/javascript">
``
The text was updated successfully, but these errors were encountered: