-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
console.log(keys) returns error #72
Comments
@graemeblackwood please provide the altered source code which throws the error in a gist |
https://gist.github.com/graemeblackwood/5db647a03dd129a98c77 It works if I put it inside fingerprint2.js, but I can't find any documentation that shares how to print the keys in the console when initiating the plugin. |
@graemeblackwood, ah got it. Keys are not accessible from the outside, it's meant this way. Otherwise any script can just set keys to an empty array. If you want to print the keys, you need to add the line right into the fp2.js source code |
Ok, so my other approach (on line 105) was correct then. Was the resetting of the keys an observed problem with fp1.js? |
It was not, but I generally don't want to expose any internal data structures to the outside world. This will make it far too easy for any browser extension to disable it. |
When trying to log the results of the fingerprint (Fingerprintjs2 0.7.4), I see an error in both Chrome 44.0.2 and Firefox 40.0.3:
"Uncaught ReferenceError: keys is not defined(anonymous function) @ index.html:83(anonymous function) @ fingerprint2.js:108(anonymous function) @ fingerprint2.js:389"
The text was updated successfully, but these errors were encountered: