finger2.jsのresltを取得する関数を作りたい
Fingerprint2 は、モダンで柔軟なブラウザー フィンガープリンティング ライブラリですhttp://valve.github.io/fingerprintjs2/ 使用法:
new Fingerprint2().get(function(result, components){
console.log(result); //a hash, representing your device fingerprint
console.log(components); // an array of FP components
});
外部で Fingerprint2 の結果を取得しようとしてnew Fingerprint2().get(function(result, components){
も失敗しました。Fingerprint2().get(...) は非同期なので、Global vars や cookie のように fingerprint2 の結果を取得する関数のように記述できますか? 例えば:
var secure = getmefingerprint2();