jackspirou / clientjs

Device information and digital fingerprinting written in pure JavaScript.
http://clientjs.org
Apache License 2.0
2.09k stars 333 forks source link

Compatibility problem with Vue #127

Closed GiuseppeM92 closed 3 years ago

GiuseppeM92 commented 3 years ago

Hi,

I found a problem while implementing the library in Vue.

Downloading the version v.0.1.11, the exposed method are less, and for example the method getFingerprint() is not exposed.

This is how I included the library

import ClientJs from 'clientjs'; ... let clientJs = new ClientJs(); console.log(clientJs.getFingerprint());

generate error: Uncaught TypeError: clientJs.getFingerprint is not a function.

Many thanks

BendingBender commented 3 years ago

This is fixed in current master. Sadly, I can't publish to npm myself, although I have commit rights to this repo. So as a workaround you could depend directly on the version from github instead of the one from npm.

jackspirou commented 3 years ago

@BendingBender - I've added you to the npm registry

BendingBender commented 3 years ago

Thank you :pray: